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
What version of Hugo are you using (hugo version)?
$ hugo version
hugo v0.115.1+extended darwin/arm64 BuildDate=unknown
Does this issue reproduce with the latest release?
Yes.
Description
A taxonomy with a camel-cased term, for example goTutorial, doesn't work in templates. I'm not sure whether this is intended as I couldn't find any rules about taxonomy names – but I find the behavior surprising.
Reproduce the issue
Add a taxonomy to the Hugo configuration.
[taxonomies]
series = 'series'
Use the taxonomy in a content file and assign a camel-cased term.
---
series:
- goTutorial
---
Use the term for iterating over all posts with that term:
<ul>
{{ range .Site.Taxonomies.series.goTutorial }}
<li><ahref="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>
{{ end }}
</ul>
Nothing will be displayed. The template will only work when goTutorial is renamed to gotutorial or go_tutorial.
The text was updated successfully, but these errors were encountered:
The identifier is lowercase unless disablePathToLower is true in your site configuration, but be aware of #9171.
Please use the forum (https://discourse.gohugo.io/) for questions and troubleshooting. We prefer to use GitHub for verified bugs and vetted enhancements. Thanks.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
Description
A taxonomy with a camel-cased term, for example
goTutorial
, doesn't work in templates. I'm not sure whether this is intended as I couldn't find any rules about taxonomy names – but I find the behavior surprising.Reproduce the issue
Add a taxonomy to the Hugo configuration.
Use the taxonomy in a content file and assign a camel-cased term.
Use the term for iterating over all posts with that term:
Nothing will be displayed. The template will only work when
goTutorial
is renamed togotutorial
orgo_tutorial
.The text was updated successfully, but these errors were encountered: