diff options
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 |
