diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 23f2588..8fa2dbe 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -80,13 +80,14 @@ - {{- if .Title }} - + {{- $label_text := (.Site.Params.label.text | default .Site.Title) }} + {{- if .Site.Title }} + {{- if .Site.Params.label.icon }} {{- end -}} - {{- .Site.Params.label.text | default .Site.Title -}} + {{- $label_text -}} {{- end }} @@ -113,7 +114,7 @@ {{- end}} {{ $lang := .Lang}} - {{ $separator := or .Title (not .Site.Params.disableThemeToggle)}} + {{ $separator := or $label_text (not .Site.Params.disableThemeToggle)}} {{- with $.Site.Home.AllTranslations }}