diff --git a/config.yml b/config.yml index 606897e..7e1b87d 100644 --- a/config.yml +++ b/config.yml @@ -10,10 +10,8 @@ copyright: 2024 © Bergamo Linux Users Group paginate: 20 timeout: 1800s enableRobotsTXT: true - -params: +params: description: Bergamo Linux Users Group - social: - title: Mattermost icon: fa-comments diff --git a/data/en/homepage.yml b/data/en/homepage.yml index ac1d045..2005d7b 100644 --- a/data/en/homepage.yml +++ b/data/en/homepage.yml @@ -1,4 +1,8 @@ --- +importantWarning: + enabled: false + link: /en/where + message: "BGLUG is closed on 10 october" banner: enable: true image: homepage_banner.jpg diff --git a/data/it/homepage.yml b/data/it/homepage.yml index 93ed582..9d35264 100644 --- a/data/it/homepage.yml +++ b/data/it/homepage.yml @@ -1,4 +1,8 @@ --- +importantWarning: + enabled: false + link: /it/dove-siamo + message: "Il BGLUG è chiuso il 10 ottobre" banner: enable: true image: homepage_banner.jpg diff --git a/layouts/partials/head/important-warning.html b/layouts/partials/head/important-warning.html new file mode 100644 index 0000000..f589a1c --- /dev/null +++ b/layouts/partials/head/important-warning.html @@ -0,0 +1,9 @@ +
+ {{ with index ( index .Site.Data .Site.Language.Lang | default .Site.Data ) (.Param "homepage_data" | default "homepage") }} + {{ if .importantWarning.enabled}} +
+ ⚠️⚠️⚠️ {{ .importantWarning.message }} ⚠️⚠️⚠️ +
+ {{- end -}} + {{ end }} +
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 5194d2a..b160d73 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -43,3 +43,5 @@ + +{{- partial "head/important-warning.html" . }}