From da72a69a108860ea4a86b991e47ccf5cc4e26587 Mon Sep 17 00:00:00 2001 From: Hendra Manudinata Date: Wed, 21 Jul 2021 07:53:58 +0800 Subject: [PATCH] Allow to disable logo image in left sidebar --- exampleSite/config.yaml | 1 + layouts/partials/sidebar/left.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 578c574..de5d951 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -37,6 +37,7 @@ params: emoji: 🍥 subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit. avatar: + enabled: true local: true src: img/avatar.png diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index c7158bb..cba7f21 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -7,6 +7,7 @@
{{ with .Site.Params.sidebar.avatar }} + {{ if .enabled }}
{{ if not .local }} @@ -26,6 +27,7 @@ {{ . }} {{ end }}
+ {{ end }} {{ end }}

{{ .Site.Title }}

{{ .Site.Params.sidebar.subtitle }}