Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken category and tag links #31

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

gevhaz
Copy link
Owner

@gevhaz gevhaz commented Dec 9, 2023

Since Hugo 0.120.0 the output of delimit is now deHTMLized. For example, it turns '' into '<a>' in the final output. delimit is used to create lists of categories and tags in the blog posts summary, so it affects these lists, breaking HTML links in them.

We can bring it back to working HTML by piping it to the safeHTML function. This commit does that.

Resolves #30

Since Hugo 0.120.0 the output of `delimit` is now deHTMLized. For
example, it turns '<a>' into '&lt;a&gt;' in the final output. `delimit`
is used to create lists of categories and tags in the blog posts
summary, so it affects these lists, breaking HTML links in them.

We can bring it back to working HTML by piping it to the `safeHTML`
function. This commit does that.
@gevhaz gevhaz self-assigned this Dec 9, 2023
@gevhaz gevhaz merged commit 976c1ef into master Dec 9, 2023
1 check passed
@gevhaz gevhaz deleted the topic/fix-broken-category-tags-links branch December 9, 2023 11:40
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.

Categories display in Blog broken after Hugo upgrade from 0.119.0 to 0.120.0
1 participant