From ca6242a5734f4f8331822b26884b3d20f93429d4 Mon Sep 17 00:00:00 2001 From: amreo Date: Mon, 9 Sep 2024 00:21:50 +0200 Subject: [PATCH] Aggiunto banner di avviso importante --- config.yml | 10 +++++++--- layouts/partials/head/important-warning.html | 5 +++++ layouts/partials/header.html | 2 ++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/head/important-warning.html diff --git a/config.yml b/config.yml index 606897e..b677cdf 100644 --- a/config.yml +++ b/config.yml @@ -10,10 +10,10 @@ copyright: 2024 © Bergamo Linux Users Group paginate: 20 timeout: 1800s enableRobotsTXT: true - -params: +params: description: Bergamo Linux Users Group - + enableImportantWarning: false + importantWarningLink: dove-siamo social: - title: Mattermost icon: fa-comments @@ -62,6 +62,8 @@ languages: languageCode: it-IT languageDirection: ltr languageName: Italiano + params: + importantWarningMessage: "Il BGLUG è chiuso il 10 ottobre" permalinks: page: posts: /posts/:year/:month/:slug/ @@ -129,6 +131,8 @@ languages: languageCode: en-US languageDirection: ltr languageName: English + params: + importantWarningMessage: "BGLUG is closed il 11 ottobre" permalinks: page: posts: /posts/:year/:month/:slug/ diff --git a/layouts/partials/head/important-warning.html b/layouts/partials/head/important-warning.html new file mode 100644 index 0000000..811b1cd --- /dev/null +++ b/layouts/partials/head/important-warning.html @@ -0,0 +1,5 @@ +{{ if .Site.Params.enableImportantWarning }} +
+ ⚠️⚠️⚠️ {{ .Site.Params.importantWarningMessage }} ⚠️⚠️⚠️ +
+{{- 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" . }}