Add cookie consent banner for Google Analytics#41
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
Co-authored-by: jpomfret <981370+jpomfret@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add cookie consent notice for Google Analytics
Add cookie consent banner for Google Analytics
Nov 8, 2025
|
🎊 PR Preview f635b28 has been successfully built and deployed to https://jpomfret-jpomfret-github-io-build_preview-pr-41.surge.sh 🕐 Build time: 0.01s 🤖 By surge-preview |
Owner
|
@copilot that failed to build - can you fix it and rerun the action? |
Co-authored-by: jpomfret <981370+jpomfret@users.noreply.github.com>
Author
The build failure was a transient Surge deployment error, not an issue with the code. Hugo built successfully - the error occurred in Surge's deployment middleware when trying to upload files. I've pushed a trivial change (commit 921e1b0) to trigger a new workflow run. The preview build should succeed on this retry. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Cookie Consent Notice Implementation
Implementation Details
Added a cookie consent banner to comply with privacy regulations for websites using Google Analytics cookies.
File Created:
blog/layouts/partials/footer/custom.html- Self-contained HTML partial with inline CSS and JavaScriptFeatures:
How It Works:
Note on Build:
The initial Surge deployment encountered a transient error unrelated to the code (TypeError in Surge's deployment middleware). Hugo built successfully. This commit triggers a retry.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.