diff --git a/i18n/en.yaml b/i18n/en.yaml index 17d0f76..8d4a805 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -21,3 +21,12 @@ - id: paginatorNext translation: "Next page" + +- id: cookieMessage + translation: "This website uses cookies." + +- id: cookieLink + translation: "Learn more." + +- id: cookieDismiss + translation: "Got it!" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ac0a058..e2c7800 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -19,6 +19,10 @@ {{ end }} {{ template "_internal/google_analytics_async.html" . }} + + {{ if .Site.Params.cookie_consent_info_url }} + {{ partial "cookie-consent.html" . }} + {{ end }}
diff --git a/layouts/partials/cookie-consent.html b/layouts/partials/cookie-consent.html new file mode 100644 index 0000000..16ede69 --- /dev/null +++ b/layouts/partials/cookie-consent.html @@ -0,0 +1,24 @@ + + + +