From 1bda9df28ea468425e31c45f78cb6409eb040860 Mon Sep 17 00:00:00 2001 From: Massimo Maggioni <94243057+MassimoMaggioni@users.noreply.github.com> Date: Fri, 28 Jan 2022 20:40:54 +0100 Subject: [PATCH] - banner in the footer in case the website does not use cookies or use only technical cookies - buttons with uniform color to respect GDPR rules --- exampleSite/config.yaml | 1 + i18n/en.yaml | 4 +++- i18n/it.yaml | 2 ++ layouts/partials/footer/custom.html | 4 +++- layouts/partials/footer/footer.html | 8 +++++++- layouts/partials/helper/consent.html | 6 +++--- 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 0ff44c0..19970fa 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -31,6 +31,7 @@ params: GDPRbanner: enabled: true + onlytechnical: false footer: since: 2020 diff --git a/i18n/en.yaml b/i18n/en.yaml index a7796f0..37ee0f6 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -64,7 +64,9 @@ search: footer: GDPRsettings: - other: Manage GDPR settings + modify: Manage GDPR settings + technical: This website use only technical cookies + nocookie: This website doesn't use any cookie and doesn't collect any personal data builtWith: other: Built with {{ .Generator }} diff --git a/i18n/it.yaml b/i18n/it.yaml index 1ff34ab..91df8f8 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -64,6 +64,8 @@ search: footer: GDPRsettings: other: Gestisci il consenso GDPR + technical: Questo sito web utilizza solo cookie tecnici + nocookie: Questo sito web non usa cookie e non raccoglie dati personali builtWith: other: Realizzato con {{ .Generator }} diff --git a/layouts/partials/footer/custom.html b/layouts/partials/footer/custom.html index 04325d0..a561f2f 100644 --- a/layouts/partials/footer/custom.html +++ b/layouts/partials/footer/custom.html @@ -1,3 +1,5 @@ {{ if .Site.Params.GDPRbanner.enabled }} - {{ partial "helper/consent.html" . }} + {{ if not .Site.Params.GDPRbanner.onlytechnical }} + {{ partial "helper/consent.html" . }} + {{ end }} {{ end }} diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index c23e548..84e1a40 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -2,7 +2,13 @@