Numerous types of Jekyll letters

I am currently creating my new personalized site and I am trying to make Jekyll, now I was wondering what is the best way to get several types of messages. I mainly want to have 2 categories: blog and work

I was looking for some ways, and one way was just to create folders for each specific category

- work -- _posts --- portfolio01.md --- portfolio02.md - blog -- _posts --- blogitem01.md --- blogitem02.md 

This method seems very good.

After checking if this was the right solution, I found another one, it basically suggested using subfolders inside the _posts folder, and then defining the category in the record itself.

 - _posts -- blog --- blogitem01.md --- blogitem02.md -- work --- portfolio01.md --- portfolio02.md 

Both methods seem to have the same result, is there any real difference to this? Method one seems simpler, since you do not need to set a specific category inside each message.

+6
source share
2 answers

They are both the same. They both work great.

+5
source
 - work -- _posts --- portfolio01.md --- portfolio02.md - blog -- _posts --- blogitem01.md --- blogitem02.md 

This approach automatically categorizes your posts. The posts portfolio01.md and portfolio02.md automatically assigned to the work category. blogitem01.md and blogitem02.md automatically assigned the category blog .

 - _posts -- blog --- blogitem01.md --- blogitem02.md -- work --- portfolio01.md --- portfolio02.md 

This approach will not automatically categorize any of your posts. You can specify categories manually in the Front Matter of each post.

If you do not use categories, then both approaches do the same thing.

+1
source

All Articles