From be918c8979ad03dab3e0cc7e378e1b570059b85e Mon Sep 17 00:00:00 2001 From: Panos Sakkos Date: Fri, 19 Jan 2024 18:14:09 +0200 Subject: [PATCH] add cookies consent --- _includes/head.html | 44 +++++++++++++++++++++++++++++++++++++++++++- _includes/js.html | 34 ++-------------------------------- 2 files changed, 45 insertions(+), 33 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index e8202b098a..4d0b3deb95 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -57,7 +57,49 @@ {% endif %} {% if page.url == "/404.html" | prepend: {{site.baseurl}} %} {% endif %} {% include web-app.html %} {% include color-browser.html %} {% - include syntax-highlight.html %} + include syntax-highlight.html %} {% if jekyll.environment == "production"%} {% + if site.google-tracking-id %} + + + + + + + + + + + + + {% endif %} {% endif %} diff --git a/_includes/js.html b/_includes/js.html index 61b1f2d52e..7e59c19a3e 100644 --- a/_includes/js.html +++ b/_includes/js.html @@ -67,38 +67,8 @@ {% endif %} {% if jekyll.environment == "production" %} {% if -site.google-tracking-id %} - - - - - - - -{% endif %} {% endif %} {% if site.disqus-shortname and jekyll.environment == -"production" %} +site.google-tracking-id %} {% endif %} {% endif %} {% if site.disqus-shortname +and jekyll.environment == "production" %}