Skip to content

Commit

Permalink
Add Eclipse Foundation cookie consent to template
Browse files Browse the repository at this point in the history
As requested in jakartaee/jakartaee-documentation#20, a cookie consent banner will be added to the core template of the site in compliance with privacy laws in enabling Google Analytics.
  • Loading branch information
autumnfound authored Jan 17, 2024
1 parent f0a9ae8 commit 2591535
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/partials/head-scripts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
if (theme === 'dark') document.documentElement.classList.add('theme-dark')
}(localStorage && localStorage.getItem('theme') || (matchMedia('(prefers-color-scheme: dark)') && 'dark'))
</script>
<!-- Add Eclipse Foundation cookie consent to site for GA -->
<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>

1 change: 1 addition & 0 deletions src/partials/head-styles.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />

0 comments on commit 2591535

Please sign in to comment.