-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Taxonomy terms with single quote in the term name and custom metadata duplicates #12606
Comments
Possibly related to #12191, The suggested workaround in this issue of using the term without " or ' and then override the title within the metadata does seem to work, but changes of the title/metadata do not seem to be detected correctly during Here is a demo repo for the issue: https://github.com/nikdoof/hugo-12606 |
I have not yet dug into the details above, but I wrote this tips & tricks post a few months ago, prompted by the release of v0.123.0: https://discourse.gohugo.io/t/limit-use-of-punctuation-within-taxonomy-terms/48638 There's an open issue to add this information to the documentation: |
I created a minimal example per your description above:
The terminal displays this warning...
...which is expected per the tips & tricks post that I referred to in my previous comment. To handle this correctly: content/posts/post-1.md
content/tags/disneys-riviera-resort/_index.md
|
@nikdoof I'm going to close this. The documentation update will be addressed in gohugoio/hugoDocs#2465. |
Please excuse the title, as I can't think of a better way to explain this issue in a single line.
On my site, I have a specific taxonomy that has single quotes in the term name, e.g. "Disney's Riviera Resort". If I define custom metadata/content for this term then the customised version will render, but also a non-customised version linking to the same pageRef.
Removing the custom metadata returns the term to a 'working' state.
Steps to Reproduce
hugo.toml
taxonomy/disneys
page and see it rendering correctlytaxonomy/disneys/_index.md
with atitle
the same as the current name, add content or metadatataxonomy/tag
page and see multiple entries have rendered.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: