Wire up hugo_cookie_consent's banner and script includes
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:
2026-08-08 19:27:20 +02:00
co-authored by Claude Sonnet 5
parent 3737174422
commit bc919dfece
5 changed files with 6 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
{{ partial "hugo_cookie_consent/banner.html" . }}
+1
View File
@@ -0,0 +1 @@
{{ partial "hugo_cookie_consent/scripts.html" . }}