diff --git a/data/consent.yaml b/data/consent.yaml new file mode 100644 index 0000000..cd20726 --- /dev/null +++ b/data/consent.yaml @@ -0,0 +1,9 @@ +items: + - title: Google Anaytics (functional) + 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: 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 diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index a67b4aa..0ff44c0 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -29,6 +29,9 @@ params: rssFullContent: true favicon: + GDPRbanner: + enabled: true + footer: since: 2020 customText: @@ -109,7 +112,7 @@ params: defaultHomeserverUrl: "https://matrix.cactus.chat:8448" serverName: "cactus.chat" siteName: "" # You must insert a unique identifier here matching the one you registered (See https://cactus.chat/docs/getting-started/quick-start/#register-your-site) - + giscus: repo: repoID: @@ -122,15 +125,15 @@ params: emitMetadata: 0 gitalk: - owner: - admin: - repo: - clientID: - clientSecret: - + owner: + admin: + repo: + clientID: + clientSecret: + cusdis: - host: - id: + host: + id: widgets: enabled: - search @@ -183,14 +186,14 @@ menu: ### For demonstration purpose, the home link will be open in a new tab newTab: true icon: home - + social: - identifier: github name: GitHub url: https://github.com/CaiJimmy/hugo-theme-stack params: icon: brand-github - + - identifier: twitter name: Twitter url: https://twitter.com diff --git a/i18n/en.yaml b/i18n/en.yaml index 0197d89..a7796f0 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -63,6 +63,9 @@ search: other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)" footer: + GDPRsettings: + other: Manage GDPR settings + builtWith: other: Built with {{ .Generator }} diff --git a/i18n/it.yaml b/i18n/it.yaml index 6c4114c..1ff34ab 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -62,6 +62,9 @@ search: other: "#PAGES_COUNT pagine (#TIME_SECONDS secondi)" footer: + GDPRsettings: + other: Gestisci il consenso GDPR + builtWith: other: Realizzato con {{ .Generator }} diff --git a/layouts/partials/footer/custom.html b/layouts/partials/footer/custom.html index e69de29..04325d0 100644 --- a/layouts/partials/footer/custom.html +++ b/layouts/partials/footer/custom.html @@ -0,0 +1,3 @@ +{{ if .Site.Params.GDPRbanner.enabled }} + {{ partial "helper/consent.html" . }} +{{ end }} diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index d367b25..c23e548 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,13 +1,18 @@ {{- $ThemeVersion := "3.7.0" -}}