Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/danielkvist/hugo-terrassa-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTina <feministclickback@mail36.net>2020-05-08 17:35:10 +0300
committerTina <feministclickback@mail36.net>2020-05-08 17:35:10 +0300
commitcc17e377c2656742b56858d6bd2204703dd0acef (patch)
tree0876f3253e222d57e42ffe8a581234a90ba0354f
parenta0ad0c63ab122e6df05f13a27ea06ccdcb37334a (diff)
Set up two languages in exampleSite config.toml
This sets up English as default language and German as second language. These are just examples, can be exchanged with any languages. See Hugo Multilingual Mode: https://gohugo.io/content-management/multilingual/
-rw-r--r--exampleSite/config.toml11
1 files changed, 9 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index efde359..d442ea9 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -3,7 +3,6 @@ title = "Terrassa"
author = "Daniel Zaragoza (Danielkvist)"
googleAnalytics = ""
defaultContentLanguage = "en"
-language = "en-US"
paginate = 3
theme = "hugo-terrassa-theme"
@@ -17,7 +16,7 @@ themesDir = "../.." # Not necessary on production sites
[params.hero]
textColor = "" # Empty for default color
-[params.cta] # Call To Action
+[params.cta] # Call To Action
show = true
cta = "Contact"
link = "contact" # Relative URL
@@ -94,3 +93,11 @@ themesDir = "../.." # Not necessary on production sites
[privacy.youtube]
disable = false
privacyEnhanced = true
+
+[languages]
+ [languages.en]
+ languageName = "en"
+ weight = 1
+ [languages.de]
+ languageName = "de"
+ weight = 2