From 58815765c53830c48668cf12d90bfd80464591e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 28 May 2024 22:34:58 +0200 Subject: [PATCH] theme: remove special cases for LanguageCode #861 --- layouts/404.html | 2 +- layouts/partials/header.html | 2 +- layouts/partials/opengraph.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index ef40405555..9703bdc5a1 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,7 +1,7 @@ {{- partialCached "page-meta.hugo" . .RelPermalink }} {{- $outputFormat := partial "output-format.hugo" . }} - + {{- partial "meta.html" . }} {{- $title := partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 84e1108ebe..f27f900a6a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -14,7 +14,7 @@ {{- if .Site.Params.description }} {{- warnf "UNSUPPORTED usage of 'params.description' config parameter found, move it to the frontmatter of your home page; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#600" }} {{- end }} - + {{- partial "meta.html" . }} {{- $page := . }} diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index d0ecaa26be..baf8cbb804 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -19,7 +19,7 @@ {{- end }} -{{- with or .Params.locale site.Language.LanguageCode }} +{{- with site.Language.LanguageCode }} {{- end }}