-
I'm trying to understand how the categories work? Do I create categories by: Content/ Or do I need to specify "category: 'blog'" and "category: 'ctf writeup'" at the top of my md files? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I guess this depends on what you are trying to achieve with the category. If you are using it as a taxonomy, then yes, you add If you are referring to having separate sections on your site, you can simply follow the normal Hugo content directory rules. Either name the files with the desired name, or you can use page bundles and create a sub-directory with an
Check out the exampleSite to see how the content is organised into different sections. You can also read more about this in the Hugo Content Organization docs. |
Beta Was this translation helpful? Give feedback.
-
Thanks @jpanther ! |
Beta Was this translation helpful? Give feedback.
I guess this depends on what you are trying to achieve with the category. If you are using it as a taxonomy, then yes, you add
category: category_name
to the front matter.If you are referring to having separate sections on your site, you can simply follow the normal Hugo content directory rules. Either name the files with the desired name, or you can use page bundles and create a sub-directory with an
index.md
file.