Skip to content

fix: omit comment when GA is disabled#194

Merged
markdumay merged 2 commits intomainfrom
develop
Apr 5, 2026
Merged

fix: omit comment when GA is disabled#194
markdumay merged 2 commits intomainfrom
develop

Conversation

@markdumay
Copy link
Copy Markdown
Contributor

When GA is disabled or hugo.IsServer is true, the template rendered to a lone attribution comment. Hugo server served this comment content while the fingerprint hash was computed on the empty post-minification output, causing an SRI/CSP integrity mismatch and a blocked script.

Move the attribution comment inside the conditional block so the template produces empty output when GA is not active.

markdumay and others added 2 commits April 5, 2026 07:57
When GA is disabled or hugo.IsServer is true, the template
rendered to a lone attribution comment. Hugo server served
this comment content while the fingerprint hash was computed
on the empty post-minification output, causing an SRI/CSP
integrity mismatch and a blocked script.

Move the attribution comment inside the conditional block so
the template produces empty output when GA is not active.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@markdumay markdumay enabled auto-merge April 5, 2026 05:58
@markdumay markdumay merged commit f19384e into main Apr 5, 2026
8 checks passed
@markdumay
Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 2.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant