diff --git a/_src/_assets/javascripts/bigchain.js b/_src/_assets/javascripts/bigchain.js index b4c46d1..f7c16f1 100644 --- a/_src/_assets/javascripts/bigchain.js +++ b/_src/_assets/javascripts/bigchain.js @@ -2,6 +2,7 @@ //=include svg4everybody/dist/svg4everybody.js //=include jquery/dist/jquery.js //=include smooth-scroll/dist/js/smooth-scroll.js +//=include cookies-eu-banner/dist/cookies-eu-banner.js //=include bigchain/analytics.js //=include bigchain/dnt.js @@ -15,10 +16,6 @@ jQuery(function($) { // Forms.init() - if (!_dntEnabled()) { - GoogleAnalytics.init(); - } - // // init Smooth Scroll diff --git a/_src/_includes/cookie-banner.html b/_src/_includes/cookie-banner.html new file mode 100644 index 0000000..7eca46f --- /dev/null +++ b/_src/_includes/cookie-banner.html @@ -0,0 +1,6 @@ +
diff --git a/_src/_includes/scripts.html b/_src/_includes/scripts.html index 860b721..c2d407f 100644 --- a/_src/_includes/scripts.html +++ b/_src/_includes/scripts.html @@ -1,17 +1,11 @@ - - - - -{% if page.js %} - -{% elsif layout.js %} - -{% endif %} + {% if page.js %} + {% elsif layout.js %} + {% endif %} - -{% if jekyll.environment == "production" %} - -{% else %} - -{% endif%} - - - -{% if page.comments %} - - -{% endif %} diff --git a/_src/_layouts/base.html b/_src/_layouts/base.html index 7a046a5..25f04d9 100644 --- a/_src/_layouts/base.html +++ b/_src/_layouts/base.html @@ -19,6 +19,8 @@ {% include footer.html %} + {% include cookie-banner.html %} + {% include scripts.html %}