diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index 7e8257b..c6b313f 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -3,7 +3,7 @@ {{- $url := replace .Parent.Permalink (printf "%s" site.BaseURL) "" }} {{- $lang_url := strings.TrimPrefix (printf "%s/" .Lang) $url -}} - {{ i18n "home" | default "Home" }} + {{ i18n "home" | default "Home" }} {{- $scratch := newScratch }} {{- range $index, $element := split $lang_url "/" }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e676aa3..ff47b97 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,7 +3,7 @@ {{- if site.Copyright }} {{ site.Copyright | markdownify }} {{- else }} - © {{ now.Year }} {{ site.Title }} + © {{ now.Year }} {{ site.Title }} {{- end -}} CC BY-SA diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d9736d1..6db7c94 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -44,11 +44,7 @@ {{- $label_text := (site.Params.label.text | default site.Title) }} {{- if site.Title }} - {{- if site.Params.DisableLanguageSwitch }} - {{- else }} - - {{- end }} {{- if site.Params.label.icon }} {{- $img := resources.Get site.Params.label.icon }} {{- if $img }} @@ -97,40 +93,16 @@ {{- end }} - - {{- if not site.Params.DisableLanguageSwitch }} - {{- $lang := .Lang}} - {{- $separator := or $label_text (not site.Params.disableThemeToggle)}} - {{- with site.Home.AllTranslations }} - - {{- if $separator }}|{{ end }} - {{- range . -}} - {{- if ne $lang .Lang }} - - - {{- if (and site.Params.displayFullLangName (.Language.LanguageName)) }} - {{- .Language.LanguageName | emojify -}} - {{- else }} - {{- .Lang | title -}} - {{- end -}} - - - {{- end -}} - {{- end}} - - {{- end }} - {{- end }} {{- $currentPage := . }} {{- range site.Menus.main }} - {{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absLangURL }} - {{- $page_url:= $currentPage.Permalink | absLangURL }} + {{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absURL }} + {{- $page_url:= $currentPage.Permalink | absURL }} {{- $is_search := eq (site.GetPage .KeyName).Layout `search` }} -