~alanorth/hugo-theme-bootstrap4-blog

ref: c17a7d229f6dd9543dd7bd6501b46e0a8abf15cb hugo-theme-bootstrap4-blog/layouts/partials/cookie-consent.html -rw-r--r-- 972 bytes
c17a7d22 — Alan Orth CHANGELOG.md: Add note about recents block in sidebar 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<link href="{{ .Site.BaseURL }}css/cookieconsent.min.css" rel="stylesheet" type="text/css"{{ if not .Site.Params.disable_sri }} integrity="{{ .Site.Data.sri.cookieconsentcss }}" crossorigin="anonymous"{{ end }}>
<script src="{{ .Site.BaseURL }}js/cookieconsent.min.js"{{ if not .Site.Params.disable_sri }} integrity="{{ .Site.Data.sri.cookieconsentjs }}" crossorigin="anonymous"{{ end }} async></script>

<script>
window.addEventListener("load", function(){
  window.cookieconsent.initialise({
    "palette": {
      "popup": {
        "background": "#428bca",
        "text": "#ffffff"
      },
      "button": {
        "background": "#f71559"
      }
    },
    "content": {
      "message": '{{ i18n "cookieMessage" }}',
      "dismiss": '{{ i18n "cookieDismiss" }}',
      "link": '{{ i18n "cookieLink" }}',
      "href": "{{ .Site.Params.cookie_consent_info_url | absURL}}"
    },
    "position": "bottom-right"
  })});
</script>

{{- /* vim: set ts=2 sw=2 et: */}}