Skip to content

How would I break up categories? #39

Answered by jpanther
wzrdk3lly asked this question in Q&A
Discussion options

You must be logged in to vote

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.

.
└── content
    └── about
    |   └── index.md        // <- https://.../about/
    ├── blog
    |   ├── firstpost.md    // <- https://.../blog/firstpost/
    |   └── secondpost
    |       └── index.md    // <- https://.../blog/secondpost/
    └── writing
        ├── first.…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wzrdk3lly
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants