Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f511f5e6f | ||
|
|
fe2cb13aff |
@@ -1,7 +1,14 @@
|
||||
(function () {
|
||||
var KEY = 'cookie_consent';
|
||||
var banner = document.getElementById('cookie-banner');
|
||||
if (!banner) return;
|
||||
if (!banner) {
|
||||
console.error(
|
||||
'[hugo_cookie_consent] #cookie-banner not found in the DOM. ' +
|
||||
'Did you include the hugo_cookie_consent/banner.html partial in your site\'s layout? ' +
|
||||
'See the module README ("Installation in your Hugo site").'
|
||||
);
|
||||
return;
|
||||
}
|
||||
updateStatus();
|
||||
|
||||
var consent = localStorage.getItem(KEY);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="cookie-banner" style="display:none" role="dialog"
|
||||
aria-label="Cookie consent" aria-live="polite"
|
||||
data-matomo-url="{{ .Site.Params.hugo_cookie_consent.matomo_host }}"
|
||||
data-matomo-site-id="{{ .Site.Params.hugo_cookie_consent_matomo_site_id }}" >
|
||||
data-matomo-site-id="{{ .Site.Params.hugo_cookie_consent.matomo_site_id }}" >
|
||||
<p>
|
||||
{{ i18n "site_wants_cookie" }}
|
||||
<a href="{{ .Site.Params.hugo_cookie_consent.privacy_policy_url }}">
|
||||
|
||||
Reference in New Issue
Block a user