diff options
| author | Arne Rief <riearn@proton.me> | 2025-09-04 20:05:27 +0200 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2025-09-04 20:05:27 +0200 |
| commit | 26df3baeb1afcb4c41ec99f940b237b9589caa42 (patch) | |
| tree | ee970fe0810d56a4b83174d282127593ba418547 /hugo.toml | |
| parent | 2204aa9db535af9b0c38487f74a56bd0ac9f07e2 (diff) | |
Ready for deployment
Diffstat (limited to 'hugo.toml')
| -rw-r--r-- | hugo.toml | 42 |
1 files changed, 39 insertions, 3 deletions
@@ -8,6 +8,42 @@ enableRobotsTXT = true # Copy this line to your project's hugo.toml # {{ .Date }} will look for publishDate or aliases first, fallback to date date = ["publishdate", "pubdate", "published", "date"] +# EXAMPLE: multilingual English-German site with content/en & content/de directories; English as default +defaultContentLanguage = "en" +defaultContentLanguageInSubdir = true +disableDefaultLanguageRedirect = true + +[languages] + [languages.de] + contentDir = "content/de" + languageCode = "de-DE" + languageName = "Deutsch" + weight = 2 + + [[languages.de.menus.main]] + identifier = "home" + name = "Startseite" + pageRef = "/" + weight = 10 + + [[languages.de.menus.main]] + identifier = "about" + name = "Über mich" + pageRef = "/about/" + weight = 20 + + [[languages.de.menus.main]] + identifier = "search" + name = "Suche" + pageRef = "/search/" + weight = 30 + + [languages.en] + contentDir = "content/en" + languageCode = "en-US" + languageName = "English" + weight = 1 + [menus] [[menus.main]] identifier = "home" @@ -28,9 +64,9 @@ enableRobotsTXT = true # Copy this line to your project's hugo.toml weight = 30 [[menus.main]] - identifier = "tags" - name = "Tags" - pageRef = "/tags" + identifier = "search" + name = "Search" + pageRef = "/search" weight = 40 [outputs] # Copy outputs configuration to your project's hugo.toml |
