Skip to content

Update Hugo to v0.159.1#588

Open
bot-actions[bot] wants to merge 1 commit intomasterfrom
hugo-v0.159.1
Open

Update Hugo to v0.159.1#588
bot-actions[bot] wants to merge 1 commit intomasterfrom
hugo-v0.159.1

Conversation

@bot-actions
Copy link
Copy Markdown
Contributor

@bot-actions bot-actions bot commented Mar 27, 2026

👑 Hugo update!

v0.159.1 Release Notes

The regression fixed in this release isn't new, but it's so subtle that we thought we'd release this sooner rather than later. For some time now, the minifier we use have stripped namespaced attributes in SVGs, which broke dynamic constructs using e.g. AlpineJS' x-bind: namespace (library used by Hugo's documentation site).

To fix this, the upstream library has hadded a keepNamespaces slice option. It was not possible to find a default that would make all happy, so we opted for an option that at least would make AlpineJS sites work out of the box:

 [minify.tdewolff.svg]
      keepNamespaces = ['', 'x-bind']

What's Changed

  • minifiers: Keep x-bind and blank namespace in SVG minification 42289d76 @bep #14669

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant