Open
Description
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"]
---
layouts/_default/taxonomy.html
{{ range .Data.Terms.ByCount }}
Term: {{ .Term }}
Count: {{ .Count }}
Name: {{ .Name }}
Page title: {{ .Page.Title }}
{{ end }}
Expected output in public/book-authors/index.html
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