Merge pull request #51 from vlourme/emoji

sidebar: hide emoji placeholder when no emoji is specified
This commit is contained in:
Jimmy Cai 2020-11-23 10:48:38 +01:00 committed by GitHub
commit 6b5e840111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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