Skip to content

Better support for Hugo 0.158#12

Open
svendahlstrand wants to merge 3 commits intomicrodotblog:masterfrom
svendahlstrand:support-158
Open

Better support for Hugo 0.158#12
svendahlstrand wants to merge 3 commits intomicrodotblog:masterfrom
svendahlstrand:support-158

Conversation

@svendahlstrand
Copy link
Copy Markdown
Contributor

There have been two breaking changes in Hugo, and this pull request addresses both of them.

Starting with Hugo 0.134, .Summary now returns HTML instead of plain text, which affects the archive page and a couple of JSON files that expect plain text. I've solved the issue by using plainify and htmlUnescape (to maintain compatibility with Hugo 0.91).

In Hugo 0.156, .Site.Author was removed and @manton has introduced .Site.Params.author for us to use instead (in commit 53f5adf). I've replaced all remaining occurrences in theme-blank.

This wasn't strictly necessary since Micro.blog helpfully updates old usage. It's mainly a cosmetic and educational change, making it clear to theme & plugin developers that .Site.Params.author is the correct option to use from now on.

These changes have been tested locally on my machine, and confirmed working on Hugo 0.91 and 0.158. Would love for you to test and confirm too, @manton.

@manton
Copy link
Copy Markdown
Contributor

manton commented Apr 2, 2026

Great, thanks! Will test and then deploy.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants