From 46fccdb2d4ac18c1ae2e60e5f3aa68ab28c818f8 Mon Sep 17 00:00:00 2001 From: Thomas Dedek Date: Sun, 22 Dec 2019 10:43:47 +0100 Subject: [PATCH] README: add extension description --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 86dc1de..5d24b5d 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,14 @@ A live server can be started as usual with hugo: hugo server +### Add a new language `$lang` + +There is only one content page which contains all languages in the front matter. However hugo requires to have a seperate content document per language. Thus they are simply duplicated by a soft link. + + ln -s content/index.en.md content/index.${lang}.md + +Within that page the translation has to be added in the front matter. + ## Deployment The build and deploy workflow is provided by the contained shell script `build+deploy.sh`.