diff options
| author | eltrac <hi@eltr.ac> | 2026-05-06 02:17:56 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-05-06 02:17:56 +0800 |
| commit | c0b0a2276c414e5a4b80e8ba32f97cb01391b6b4 (patch) | |
| tree | 03f370edb3268ef1380ef285d16c626bd7923295 | |
| parent | 6eea146f7954f6359a22177f73e6dd2f055c4067 (diff) | |
chore(hugo): replace deprecated .Language.LanguageCode with .Language.Locale
| -rw-r--r-- | layouts/rss.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/rss.xml b/layouts/rss.xml index 026d9a8..08419d3 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -38,7 +38,7 @@ <link>{{ .Permalink }}</link> <description>{{ .Site.Title }}{{ if ne .Title .Site.Title }}{{ with .Title }}:在「{{.}}」分区下的最新内容{{ end }}{{ end }}</description> <generator>Hugo</generator> - <language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }} + <language>{{ site.Language.Locale }}</language>{{ with $authorEmail }} <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }} <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }} <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }} |
