summaryrefslogtreecommitdiff
path: root/hugo.toml
diff options
context:
space:
mode:
authorArne Rief <riearn@proton.me>2026-04-09 18:31:14 +0200
committerArne Rief <riearn@proton.me>2026-04-10 14:22:04 +0200
commite9f46b1e5a2c41bfe1da702b3823d64fb3d64017 (patch)
tree3e4ce3b6037ebb2283b008bb4524c3b65b099d75 /hugo.toml
parentf8541ef965ca22e746b523eb418e47cb4f78f2d8 (diff)
Replaced deprecated language methods & settings from hugo v0.156.0 & v0.158.0
Diffstat (limited to 'hugo.toml')
-rw-r--r--hugo.toml10
1 files changed, 5 insertions, 5 deletions
diff --git a/hugo.toml b/hugo.toml
index 41d29c0..184ebde 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -1,5 +1,5 @@
baseURL = "https://example.org/"
-languageCode = "en-US"
+locale = "en"
title = "Your Website Name"
enableRobotsTXT = true # Copy this line to your project's hugo.toml
@@ -16,8 +16,8 @@ disableDefaultLanguageRedirect = false
[languages]
[languages.de]
contentDir = "content/de"
- languageCode = "de-DE"
- languageName = "Deutsch"
+ locale = "de"
+ label = "Deutsch"
weight = 2
[[languages.de.menus.main]]
@@ -41,8 +41,8 @@ disableDefaultLanguageRedirect = false
[languages.en]
contentDir = "content/en"
- languageCode = "en-US"
- languageName = "English"
+ locale = "en"
+ label = "English"
weight = 1
[menus]