From f763adfa609c76f488e394cf5915b993de58308c Mon Sep 17 00:00:00 2001 From: Victor Lourme Date: Mon, 23 Nov 2020 10:01:39 +0100 Subject: [PATCH 1/2] sidebar: hide emoji placeholder when no emoji is specified --- layouts/partials/sidebar/left.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index 7ae24a4..23447bd 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -18,7 +18,9 @@ {{ errorf "Failed loading avatar from %q" . }} {{ end }} - {{ $.Site.Params.sidebar.emoji }} + {{ with $.Site.Params.sidebar.emoji }} + {{ . }} + {{ end }} {{ end }}

{{ .Site.Title }}

From b36cf5cc4e0301cb34f7904999f3156eee9256f4 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Mon, 23 Nov 2020 10:47:22 +0100 Subject: [PATCH 2/2] style: add indent to /partials/sidebar/left.html --- layouts/partials/sidebar/left.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index 23447bd..5081b7c 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -19,7 +19,7 @@ {{ end }} {{ with $.Site.Params.sidebar.emoji }} - {{ . }} + {{ . }} {{ end }} {{ end }} @@ -42,4 +42,4 @@ {{ end }} - \ No newline at end of file +