mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-15 22:14:42 +00:00
Apply site color theme to cookie consent banner (#529)
This commit is contained in:
1 parent
ed5a5186b2
commit
fe8ea7b4e1
1 file changed
+6
-2
@@ -1,4 +1,5 @@
|
|||||||
{{ if .Site.Params.privacy_pack }}
|
{{ if .Site.Params.privacy_pack }}
|
||||||
|
{{ $scr := .Scratch }}
|
||||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css">
|
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css">
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
@@ -6,12 +7,15 @@
|
|||||||
window.cookieconsent.initialise({
|
window.cookieconsent.initialise({
|
||||||
"palette": {
|
"palette": {
|
||||||
"popup": {
|
"popup": {
|
||||||
"background": "#000"
|
"background": "{{ $scr.Get "primary" }}",
|
||||||
|
"text": "{{ $scr.Get "background" }}"
|
||||||
},
|
},
|
||||||
"button": {
|
"button": {
|
||||||
"background": "#f1d600"
|
"background": "{{ $scr.Get "background" }}",
|
||||||
|
"text": "{{ $scr.Get "primary" }}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"theme": "classic",
|
||||||
"content": {
|
"content": {
|
||||||
"message": {{ i18n "cookie_message" | default "This website uses cookies to ensure you get the best experience on our website." }},
|
"message": {{ i18n "cookie_message" | default "This website uses cookies to ensure you get the best experience on our website." }},
|
||||||
"dismiss": {{ i18n "cookie_dismiss" | default "Got it!" }},
|
"dismiss": {{ i18n "cookie_dismiss" | default "Got it!" }},
|
||||||
|
|||||||
Reference in new issue
Block a user