From 2591535949c0be446bbf1ad5ce67b02cf34249c4 Mon Sep 17 00:00:00 2001 From: Martin Lowe Date: Wed, 17 Jan 2024 15:21:15 -0500 Subject: [PATCH] Add Eclipse Foundation cookie consent to template As requested in https://github.com/jakartaee/jakartaee-documentation/issues/20, a cookie consent banner will be added to the core template of the site in compliance with privacy laws in enabling Google Analytics. --- src/partials/head-scripts.hbs | 2 ++ src/partials/head-styles.hbs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs index a230063..ea541ae 100644 --- a/src/partials/head-scripts.hbs +++ b/src/partials/head-scripts.hbs @@ -7,4 +7,6 @@ if (theme === 'dark') document.documentElement.classList.add('theme-dark') }(localStorage && localStorage.getItem('theme') || (matchMedia('(prefers-color-scheme: dark)') && 'dark')) + + \ No newline at end of file diff --git a/src/partials/head-styles.hbs b/src/partials/head-styles.hbs index d6839e5..fbafa2e 100644 --- a/src/partials/head-styles.hbs +++ b/src/partials/head-styles.hbs @@ -1 +1,2 @@ + \ No newline at end of file