divinerites-cookies
About
Small gohugo.io component for RGPD cookies consent management
Usage
config.toml
Include this params.global.cookies
section in your config.toml
ONLY if you want cookie consent.
File : config.toml
[params.global.cookies]
enable = true
ck_enable = true
ck_cdn = true
ck_popup_bg = "#000"
ck_button_bg = "transparent"
ck_button_text = "#f1d600"
ck_button_border = "#f1d600"
1 - Call header_cookies.html
partial in your <head>
section
<head>
...
{{ partial "header_cookies.html" . }}
...
</head>
2 - Call footer_cookie.html
partial in your <footer>
section
<footer>
...
{{ partial "footer_cookie.html" . }}
...
</footer>
Credits