Wire up hugo_cookie_consent's banner and script includes
Build and Deploy / build-and-deploy (push) Successful in 13s
Build and Deploy / build-and-deploy (push) Successful in 13s
The theme's baseof.html only loads the consent banner and its JS if the site fills in the body_extra/scripts_extra hook partials; neither existed, so the banner never rendered and the JS 404'd when the "change cookie preferences" button tried to call it. Also bumps hugo_cookie_consent to v0.0.10, which logs a clear console error if the banner element is ever missing again, and drops an unused stray privacyPolicyURL param left over from debugging. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,5 +5,3 @@ hugo_cookie_consent:
|
|||||||
enable_tracking: true
|
enable_tracking: true
|
||||||
matomo_host: https://matomo.bovender.de
|
matomo_host: https://matomo.bovender.de
|
||||||
matomo_site_id: 3
|
matomo_site_id: 3
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
module git.bovender.de/daniel/xltoolbox.net.git
|
module git.bovender.de/daniel/xltoolbox.net
|
||||||
|
|
||||||
go 1.26.3
|
go 1.26.3
|
||||||
|
|
||||||
require (
|
require (
|
||||||
git.bovender.de/daniel/hugo_bootstrap_theme v0.0.8 // indirect
|
git.bovender.de/daniel/hugo_bootstrap_theme v0.0.8 // indirect
|
||||||
git.bovender.de/daniel/hugo_cookie_consent v0.0.6 // indirect
|
git.bovender.de/daniel/hugo_cookie_consent v0.0.10 // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2,3 +2,5 @@ git.bovender.de/daniel/hugo_bootstrap_theme v0.0.8 h1:20U5sQ6YHbG6YP/+5+WcBkf8oB
|
|||||||
git.bovender.de/daniel/hugo_bootstrap_theme v0.0.8/go.mod h1:iLp7PY+cH8Cszxxx6XDGVS9kPdkH5qKdoUhIDQMpS+g=
|
git.bovender.de/daniel/hugo_bootstrap_theme v0.0.8/go.mod h1:iLp7PY+cH8Cszxxx6XDGVS9kPdkH5qKdoUhIDQMpS+g=
|
||||||
git.bovender.de/daniel/hugo_cookie_consent v0.0.6 h1:q3AEinytbYYFIZ3hHIcmU+T+imEGBMQeaVXJIlhz8Po=
|
git.bovender.de/daniel/hugo_cookie_consent v0.0.6 h1:q3AEinytbYYFIZ3hHIcmU+T+imEGBMQeaVXJIlhz8Po=
|
||||||
git.bovender.de/daniel/hugo_cookie_consent v0.0.6/go.mod h1:XTLK60q7Zlhjtw84Toe0l8C1tgPaVKcWRluceaig0o0=
|
git.bovender.de/daniel/hugo_cookie_consent v0.0.6/go.mod h1:XTLK60q7Zlhjtw84Toe0l8C1tgPaVKcWRluceaig0o0=
|
||||||
|
git.bovender.de/daniel/hugo_cookie_consent v0.0.10 h1:ehf1ZHTkgIVPafpmD9nLnI/8XBOW6pm28Xk04CdBUEk=
|
||||||
|
git.bovender.de/daniel/hugo_cookie_consent v0.0.10/go.mod h1:XTLK60q7Zlhjtw84Toe0l8C1tgPaVKcWRluceaig0o0=
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
{{ partial "hugo_cookie_consent/banner.html" . }}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{{ partial "hugo_cookie_consent/scripts.html" . }}
|
||||||
Reference in New Issue
Block a user