You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a taxonomy name includes a space, its terms which only have a single associated page have the plural taxonomy name prepended to their name when rendering.
This bug appears to have been introduced in #13064.
Setup
hugo.toml:
[taxonomies]
"book author" = "book authors"
content/posts/post1.md:
---
title: My Post
tags: ["Tag One"]
book authors: ["Author One"]
---
content/posts/post2.md:
---
title: My Post
tags: ["Tag One", "Tag Two"]
book authors: ["Author One", "Author Two"]
---
Term: author one
Count: 2
Name: author one
Page title: Author One
Term: author two
Count: 1
Name: author two
Page title: Author Two
Actual output in public/book-authors/index.html
Term: author one
Count: 2
Name: author one
Page title: Author One
Term: book authors/author two
Count: 1
Name: book authors/author two
Page title: Book Authors/Author Two
What version of Hugo are you using (hugo version)?
$ hugo version
hugo v0.144.2+extended+withdeploy linux/amd64 BuildDate=unknown
Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered:
If the taxonomy name differs when normalized versus unnormalized (e.g.,
because it has a space in it which is converted to a dash when
normalized), the plural tree key will not match as a prefix to the
term's base path (which is normalized). Use the non-normalized taxonomy
name instead to ensure that the prefix always matches and is trimmed.
Fixes: gohugoio#13422
Signed-off-by: Jason Cox <[email protected]>
When a taxonomy name includes a space, its terms which only have a single associated page have the plural taxonomy name prepended to their name when rendering.
This bug appears to have been introduced in #13064.
Setup
hugo.toml
:content/posts/post1.md
:content/posts/post2.md
:layouts/_default/taxonomy.html
Expected output in
public/book-authors/index.html
Actual output in
public/book-authors/index.html
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered: