From 26df3baeb1afcb4c41ec99f940b237b9589caa42 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Thu, 4 Sep 2025 20:05:27 +0200 Subject: Ready for deployment --- hugo.toml | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) (limited to 'hugo.toml') diff --git a/hugo.toml b/hugo.toml index 7f7cea2..368a7b3 100644 --- a/hugo.toml +++ b/hugo.toml @@ -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 -- cgit v1.2.3