diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index ff536a8..dacc85b 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -6,13 +6,15 @@
-
- {{ $avatar := resources.Get (.Site.Params.avatar) }} - {{ $avatarResized := $avatar.Resize "300x300" }} - - {{ .Site.Params.emoji }} -
+ {{ if .Site.Params.avatar }} +
+ {{ $avatar := resources.Get (.Site.Params.avatar) }} + {{ $avatarResized := $avatar.Resize "300x300" }} + + {{ .Site.Params.emoji }} +
+ {{ end }}

{{ .Site.Title }}

{{ .Site.Params.subtitle }}

@@ -24,7 +26,9 @@
  • - {{ (resources.Get (delimit (slice "icons/" .Pre ".svg") "")).Content | safeHTML }} + {{ if .Pre }} + {{ (resources.Get (delimit (slice "icons/" .Pre ".svg") "")).Content | safeHTML }} + {{ end }} {{- .Name -}}