+ {{ range $languages }}
+ {{ $lang_title := . | strings.ToUpper }}
+ {{ if .LanguageName }}{{ $lang_title = .LanguageName }}{{ end }}
+
+ {{ if eq .Lang $.Lang }}
+ {{ if $.Site.Params.show_current_lang }}
+
{{ $lang_title }}
+ {{ end }}
+ {{ continue }}
+ {{ end }}
+
+
{{ $lang_title }}
+ {{ end }}
+
+ {{ end }}
+
- {{ with .Params.header_logo }}

{{ end }}
+ {{ with resources.Get .Params.header_logo }}

{{ end }}
{{ if .Site.Params.title_guard }}
{{ end }}
{{ with .Params.header_headline }}
{{ . | safeHTML }}
{{ end }}
@@ -41,6 +75,7 @@
{{ end }}
{{ end }}
+
{{ with (index $content 0) }}
{{ $first_title := .Title }}{{ with .Params.navigation_menu_title }}{{ $first_title = . }}{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index c8da16c..22b0164 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -3,9 +3,8 @@
{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}
-{{ with .Site.Params.favicon }}
- {{ end }}
+{{ with resources.Get .Site.Params.favicon }}
+ {{ end }}
{{ with .Site.Params.description }}