Hi everbody!
I am a new Hugo user and I have a problem with understanding the use of taxonomies. Could someone share a sample configuration?
If this is important I use Hugo v0.18.1 and liquorice theme
Hi GoodToBeUgly
Pls be more specific.
Or you can look in the Themes / Git repo for simple examples.
Maybe this Theme will help
Thank for respond!
I would use categories and tags on my blog. I chose the theme liquorice, look in to the code, and this theme supports categories and tags. But I donât understand configuration method. I read about using taxonomies (http://gohugo.io/taxonomies/usage/) but i donât know where I should enter categories and tags, which I want to use.
Ok, I check this theme and now everything is clear:). Thanks Beny!
Itâs great that you solved your problem!
What kind of example would have helped you?
Is there some way we can improve the documentation to help people if they have the same question in the future?
[quote=âGoodToBeUgly, post:3, topic:5323â]
but i donât know where I should enter categories and tags, which I want to use.
[/quote] I think this was the core of the question.
The answer: You have to set them in the frontmatter of your pages.
Youâve only answered half the question - the where to configure the tags/categories.
The other half - the which to use, categories or tags, is really up to the creator in my opinion, as long as youâre consistent. In my view, categories look at the type of post (blog, review, tutorial, etc.) while tags relate more closely with the content (for review, that could be things like âmarvelâ, âfilmâ, âcaptain americaâ, etc.).
Further taxonomies are necessary based on the content that youâve got. I think itâs difficult to talk about this is in such general terms.
Thereâs also the missing third part of the question - your chosen themeâs support for tags, or categories.
For example, blackburn
expects you to use tags. It doesnât show categories at all.
You can change blackburn
use categories by tinkering with files inside the theme/blackburn/partials/
folder, but new users donât necessarily know how to do that. (I didnât, when I first started evaluating / using Hugo.)