diff --git a/readme.md b/readme.md index fd8e321..8b62a0d 100755 --- a/readme.md +++ b/readme.md @@ -20,6 +20,7 @@ Production site: v - [Usage / Update Content](#usage--update-content) - [Editing Content](#editing-content) + - [Show ALERT-message on index-page](#show-alert-message-on-index-page) - [Images](#images) - [Shortcodes](#shortcodes) - [Custom Shortcodes exclusively for VeruA.ch](#custom-shortcodes-exclusively-for-veruach) @@ -68,6 +69,15 @@ translationKey: "a-page-about-cats" For example, the german version of the VeruA.ch website is located in the `content/german` folder. The french version is located in the `content/french` folder. Both are linked by the translation key `a-page-about-cats`. +[⬆](#table-of-contents) + +### Show ALERT-message on index-page + +For a important message on start-page use the text-part in hugoplate under **themes/hugoplate/layouts/index.html** + +Remove start- and end-tag {{/* */}} for each language and edit the text. + + [⬆](#table-of-contents) ### Images diff --git a/themes/hugoplate/layouts/index.html b/themes/hugoplate/layouts/index.html index 4cf7723..22147e8 100755 --- a/themes/hugoplate/layouts/index.html +++ b/themes/hugoplate/layouts/index.html @@ -1,5 +1,29 @@ {{/* Home Template File */}} {{ define "main" }} + +{{/* {{ if eq .Site.Language.Lang "de" }} +
+ +
+{{ end }} */}} + {{/* {{ if eq .Site.Language.Lang "fr" }}
{{ end }} */}} +