diff options
author | Hendra Manudinata <87532060+manudinath@users.noreply.github.com> | 2021-07-23 11:56:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 11:56:52 +0300 |
commit | a25e6463bdc9900e5f999d276a0e5d92ee1f8d9a (patch) | |
tree | 071c9b05c2790e8fa56ee27cd871b9aa0d821764 /layouts | |
parent | 8cb11d721f550932b3851bc7fa595d55b44faa7c (diff) |
feat(sidebar): add option to disable avatar in left sidebar (#268)
* Allow to disable logo image in left sidebar
* Enable sidebar avatar by default for backward compatibility
Co-authored-by: Jimmy Cai <github@jimmycai.com>
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/sidebar/left.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index c7158bb..af483e3 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -7,6 +7,7 @@ <header class="site-info"> {{ with .Site.Params.sidebar.avatar }} + {{ if (default true .enabled) }} <figure class="site-avatar"> {{ if not .local }} <img src="{{ .src }}" width="300" height="300" class="site-logo" loading="lazy" alt="Avatar"> @@ -26,6 +27,7 @@ <span class="emoji">{{ . }}</span> {{ end }} </figure> + {{ end }} {{ end }} <h1 class="site-name"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1> <h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2> |