From 05030585cc4304421e073713b28b800451ff198f Mon Sep 17 00:00:00 2001 From: Massimo Maggioni <94243057+MassimoMaggioni@users.noreply.github.com> Date: Sun, 30 Jan 2022 20:16:12 +0100 Subject: [PATCH] rename "technical" to "functional" --- data/consent.yaml | 6 +++++- exampleSite/config.yaml | 2 +- i18n/en.yaml | 2 +- i18n/it.yaml | 2 +- layouts/partials/footer/custom.html | 4 ++-- layouts/partials/footer/footer.html | 4 ++-- layouts/partials/{helper => gdpr}/consent.html | 0 7 files changed, 12 insertions(+), 8 deletions(-) rename layouts/partials/{helper => gdpr}/consent.html (100%) diff --git a/data/consent.yaml b/data/consent.yaml index cd20726..2ca81ad 100644 --- a/data/consent.yaml +++ b/data/consent.yaml @@ -3,7 +3,11 @@ items: description: This code gives us insight into the number of people that visit our website, where they are from and what they are clicking on. We follow the guidelines of the Dutch Government, which describe how to use Google Analytics without requiring explicit consent. is_functional: true script_file: ga.js + - title: Disqus comment (functional) + description: This code gives users the option to comment the articles. + is_functional: true + script_file: disqus.js - title: Crisp chat description: This code gives users the option to chat directly with us through a chat box in the bottom right corner. Visitor data will (also) be sent to Crisp. is_functional: false - script_file: crisp.js \ No newline at end of file + script_file: crisp.js diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 19970fa..30fd32a 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -31,7 +31,7 @@ params: GDPRbanner: enabled: true - onlytechnical: false + onlyfunctional: false footer: since: 2020 diff --git a/i18n/en.yaml b/i18n/en.yaml index 37ee0f6..b55cc32 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -65,7 +65,7 @@ search: footer: GDPRsettings: modify: Manage GDPR settings - technical: This website use only technical cookies + functional: This website use only functional cookies nocookie: This website doesn't use any cookie and doesn't collect any personal data builtWith: diff --git a/i18n/it.yaml b/i18n/it.yaml index 91df8f8..bd0f53a 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -64,7 +64,7 @@ search: footer: GDPRsettings: other: Gestisci il consenso GDPR - technical: Questo sito web utilizza solo cookie tecnici + functional: Questo sito web utilizza solo cookie funzionali nocookie: Questo sito web non usa cookie e non raccoglie dati personali builtWith: diff --git a/layouts/partials/footer/custom.html b/layouts/partials/footer/custom.html index a561f2f..d4cf7aa 100644 --- a/layouts/partials/footer/custom.html +++ b/layouts/partials/footer/custom.html @@ -1,5 +1,5 @@ {{ if .Site.Params.GDPRbanner.enabled }} - {{ if not .Site.Params.GDPRbanner.onlytechnical }} - {{ partial "helper/consent.html" . }} + {{ if not .Site.Params.GDPRbanner.onlyfunctional }} + {{ partial "gdpr/consent.html" . }} {{ end }} {{ end }} diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index 81e7600..a4032ee 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -11,10 +11,10 @@
{{ if .Site.Params.GDPRbanner.enabled }} - {{ if not .Site.Params.GDPRbanner.onlytechnical }} + {{ if not .Site.Params.GDPRbanner.onlyfunctional }} {{ T "footer.GDPRsettings.modify" }} {{ else }} - {{ T "footer.GDPRsettings.technical" }} + {{ T "footer.GDPRsettings.functional" }} {{ end }} {{ else }} {{ T "footer.GDPRsettings.nocookie" }} diff --git a/layouts/partials/helper/consent.html b/layouts/partials/gdpr/consent.html similarity index 100% rename from layouts/partials/helper/consent.html rename to layouts/partials/gdpr/consent.html