summaryrefslogtreecommitdiff
path: root/hugo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'hugo.toml')
-rw-r--r--hugo.toml42
1 files changed, 39 insertions, 3 deletions
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