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 @@