Hi,
is there an easy way to get the taxonomies lists with singular instead of plural in the url? I mean, the default is i have a page behind the url
/tags/error/
But I want the url to be in singular:
/tag/error/
Analog to category/categories. Is this possible with hugo?
Best Regards
Strubbl
bep
July 14, 2015, 10:16pm
2
You can define the single/plural yourself in config.toml:
[Taxonomies]
tag = "tag"
Unfortunately, this does not work. Where can i find documentation to this [Taxonomies] - especially i am interested in the difference to [Indexes], which i saw in an other post.
bep
July 15, 2015, 8:20pm
4
Indexes is the old word for taxonomies.
Documentation is at
Thanks for the reply. Just to recap my settings according to documentation here: http://gohugo.io/taxonomies/usage/
My config has the section:
[taxonomies]
tag = "tag"
category = "category"
And i have at least one post with this taxonomy:
---
β¦
tag:
- abadox
- aces
---
β¦
I have restarted hugo. But i still get the tags/ page und not tag/ Anything i need to change in addition?
#edit
oh, i deleted the public/ directory and everything got newly generated. Now it works as expected. Thanks for the help, bep!
1 Like