mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
sidebar: hide emoji placeholder when no emoji is specified
This commit is contained in:
parent
cd408279e4
commit
f763adfa60
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue