From d8bc79ad2dfb4d70bfe64fa2f349398073b1b0a2 Mon Sep 17 00:00:00 2001 From: Frank Blechschmidt Date: Mon, 22 May 2023 15:58:05 -0700 Subject: Add support for cookie consent and with GA4 --- layouts/partials/consent.html | 170 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 layouts/partials/consent.html (limited to 'layouts/partials/consent.html') diff --git a/layouts/partials/consent.html b/layouts/partials/consent.html new file mode 100644 index 0000000..2f9181d --- /dev/null +++ b/layouts/partials/consent.html @@ -0,0 +1,170 @@ +{{/* Based on https://hugocodex.org/add-ons/cookie-consent/ */}} + + + + + + +{{ range $index, $item := .Site.Data.consent.items }} + {{ if $item.is_functional }} + + {{ end }} +{{ end }} -- cgit v1.2.3