From 00337c08e487f23ed91aa5ec37b832aee2c51536 Mon Sep 17 00:00:00 2001 From: Yevgen Nykytenko Date: Thu, 17 Oct 2024 10:54:41 +0300 Subject: [PATCH] Consen mode banner added --- themes/hugo-geekdoc/layouts/_default/baseof.html | 2 ++ .../layouts/partials/consentise-script.html | 7 +++++++ .../layouts/partials/head/consent-banner.html | 16 ++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 themes/hugo-geekdoc/layouts/partials/consentise-script.html create mode 100644 themes/hugo-geekdoc/layouts/partials/head/consent-banner.html diff --git a/themes/hugo-geekdoc/layouts/_default/baseof.html b/themes/hugo-geekdoc/layouts/_default/baseof.html index 7e93eda..6347b96 100644 --- a/themes/hugo-geekdoc/layouts/_default/baseof.html +++ b/themes/hugo-geekdoc/layouts/_default/baseof.html @@ -19,11 +19,13 @@ {{ partial "head/microformats" . }} {{ partial "head/others" . }} {{ partial "head/custom" . }} + {{ partial "head/consent-banner" . }} {{ partial "head/google-tag-manager" . }} {{ $navEnabled := default true .Page.Params.GeekdocNav }} + {{ partial "consentise-script" . }} {{ partial "no-script" . }} {{ partial "google-tag-manager-noscript" . }} {{ partial "svg-icon-symbols" . }} diff --git a/themes/hugo-geekdoc/layouts/partials/consentise-script.html b/themes/hugo-geekdoc/layouts/partials/consentise-script.html new file mode 100644 index 0000000..909ca4d --- /dev/null +++ b/themes/hugo-geekdoc/layouts/partials/consentise-script.html @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/themes/hugo-geekdoc/layouts/partials/head/consent-banner.html b/themes/hugo-geekdoc/layouts/partials/head/consent-banner.html new file mode 100644 index 0000000..0343a5d --- /dev/null +++ b/themes/hugo-geekdoc/layouts/partials/head/consent-banner.html @@ -0,0 +1,16 @@ + \ No newline at end of file