From 2be04b544f6613656934760e80c3cba001081117 Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Sun, 10 May 2026 14:32:35 +0200 Subject: use Locale instead of LanguageCode --- hugo.yaml | 2 +- layouts/_default/baseof.html | 2 +- layouts/index.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hugo.yaml b/hugo.yaml index cd846f0..be8dfd6 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,5 +1,5 @@ baseURL: https://mielota.com/ -languageCode: en +locale: en title: Mielota markup: diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 282c9bc..120b467 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + diff --git a/layouts/index.xml b/layouts/index.xml index 0310854..8578fc6 100644 --- a/layouts/index.xml +++ b/layouts/index.xml @@ -23,7 +23,7 @@ {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }} Hugo - {{ site.Language.LanguageCode }}{{ with $authorEmail }} {{.}}{{ + {{ site.Language.Locale }}{{ with $authorEmail }} {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with .Site.Copyright }} {{ . }}{{ end }}{{ if not .Date.IsZero }} {{ (index -- cgit v1.2.3