From 7477e8029e7d250bf47615ea59e9397d588f6fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20K=C3=A1n=C4=9B?= Date: Thu, 1 Oct 2026 11:04:12 +0200 Subject: [PATCH] Replace `LanguageCode` with `locale` The former is deprecated in Hugo. --- config.json | 2 +- themes/hermit/layouts/_default/baseof.html | 2 +- themes/hermit/layouts/posts/rss.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.json b/config.json index 9b0f7ed..a7012bf 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "baseURL": "https://vkane.cz", - "languageCode": "en", + "locale": "en", "title": "Vojtěch Káně", "theme": "hermit", diff --git a/themes/hermit/layouts/_default/baseof.html b/themes/hermit/layouts/_default/baseof.html index dfa6056..f6b220a 100644 --- a/themes/hermit/layouts/_default/baseof.html +++ b/themes/hermit/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + diff --git a/themes/hermit/layouts/posts/rss.xml b/themes/hermit/layouts/posts/rss.xml index d4a6aff..dedd9b2 100644 --- a/themes/hermit/layouts/posts/rss.xml +++ b/themes/hermit/layouts/posts/rss.xml @@ -3,7 +3,7 @@ {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} + Hugo -- gohugo.io{{ with .Site.Language.Locale }} {{.}}{{end}}{{ with .Site.Params.Author.email }} {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }}