diff --git a/layouts/_default/headless-cms.html b/layouts/_default/headless-cms.html index c89b44c..f55159c 100644 --- a/layouts/_default/headless-cms.html +++ b/layouts/_default/headless-cms.html @@ -1,5 +1,5 @@ - + @@ -42,7 +42,7 @@ {{ else }} {{ errorf "Unable to .GetRemote %q" $url_sveltia }} {{ end }} - + {{ else }}

Error

diff --git a/layouts/partials/headless-cms/functions/locale.html b/layouts/partials/headless-cms/functions/locale.html index 58dda6c..0758642 100644 --- a/layouts/partials/headless-cms/functions/locale.html +++ b/layouts/partials/headless-cms/functions/locale.html @@ -5,7 +5,7 @@ "zh-hk" "zh_Hant" "zh-tw" "zh_Hant" }} -{{- $locale := site.Language.LanguageCode }} +{{- $locale := site.Language.Locale }} {{- with index $locales $locale }} {{- $locale = . }} {{- end }}