sidebar: hide emoji placeholder when no emoji is specified

This commit is contained in:
Victor Lourme 2020-11-23 10:01:39 +01:00
parent cd408279e4
commit f763adfa60

View file

@ -18,7 +18,9 @@
{{ errorf "Failed loading avatar from %q" . }}
{{ end }}
<span class="emoji">{{ $.Site.Params.sidebar.emoji }}</span>
{{ with $.Site.Params.sidebar.emoji }}
<span class="emoji">{{ . }}</span>
{{ end }}
</figure>
{{ end }}
<h1 class="site-name"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>