diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..194243c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugomodo-cookie-consent"] + path = themes/hugomodo-cookie-consent + url = https://github.com/hugomodo/hugomodo-cookie-consent.git diff --git a/config/_default/params.toml b/config/_default/params.toml index 0a1e2a9..bd0bae9 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -129,11 +129,11 @@ disableTextInHeader = false # domain = "llama.yoursite.com" [buymeacoffee] - #identifier = "" - #globalWidget = true - #globalWidgetMessage = "Hello" - #globalWidgetColor = "#FFDD00" - #globalWidgetPosition = "Right" +#identifier = "" +globalWidget = true +globalWidgetMessage = "Cookie consent. This site is not gathering cookies" +#globalWidgetColor = "#FFDD00" +globalWidgetPosition = "Right" [verification] # google = "" diff --git a/content/_index.md b/content/_index.md index bd2574c..6ce556a 100755 --- a/content/_index.md +++ b/content/_index.md @@ -685,3 +685,4 @@ data: { {{< /rawhtml >}} + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 77e6f77..3aaa9f4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -33,9 +33,6 @@ {{- partial "search.html" . -}} {{ end }} - {{ if hugo.IsProduction }} -{{ partial "cookie-notice.html" }} -{{ end }} {{ if .Site.Params.buymeacoffee.globalWidget | default false }} \ No newline at end of file diff --git a/static/my_css/cookie.css b/static/my_css/cookie.css deleted file mode 100644 index a82ff37..0000000 --- a/static/my_css/cookie.css +++ /dev/null @@ -1,49 +0,0 @@ -* { - margin: 0; - } - - body { - font-family: "Roboto", sans-serif; - } - - p { - margin: 24px 0; - line-height: 2; - } - - .wrapper { - padding: 32px; - } - - .cookie-container { - position: fixed; - bottom: -100%; - left: 0; - right: 0; - background: #2f3640; - color: #f5f6fa; - padding: 0 32px; - box-shadow: 0 -2px 16px rgba(47, 54, 64, 0.39); - - transition: 400ms; - } - - .cookie-container.active { - bottom: 0; - } - - .cookie-container a { - color: #f5f6fa; - } - - .cookie-btn { - background: #e84118; - border: 0; - color: #f5f6fa; - padding: 12px 48px; - font-size: 18px; - margin-bottom: 16px; - border-radius: 8px; - cursor: pointer; - } - \ No newline at end of file diff --git a/static/my_js/cookie.js b/static/my_js/cookie.js deleted file mode 100644 index 80ec187..0000000 --- a/static/my_js/cookie.js +++ /dev/null @@ -1,13 +0,0 @@ -const cookieContainer = document.querySelector(".cookie-container"); -const cookieButton = document.querySelector(".cookie-btn"); - -cookieButton.addEventListener("click", () => { - cookieContainer.classList.remove("active"); - localStorage.setItem("cookieBannerDisplayed", "true"); -}); - -setTimeout(() => { - if (!localStorage.getItem("cookieBannerDisplayed")) { - cookieContainer.classList.add("active"); - } -}, 2000); \ No newline at end of file