danpros / htmly

Simple and fast databaseless PHP blogging platform, and Flat-File CMS
https://www.htmly.com
GNU General Public License v2.0
1.07k stars 263 forks source link

Adding sub-categories #753

Closed ashraf21c closed 4 months ago

ashraf21c commented 4 months ago

Hello, I love HTMLy, its pretty nice and easy to use. I have a question, is there anyway to create sub-categories? Lets say an HTMLy blog has a category named "Languages", and it needs sub categories "Japanese", "Arabic", etc... Yes, I can add them all as categories, but I would prefer to have them in subcategories, to organize them and to make it easier for site visitors.

danpros commented 4 months ago

Hello,

With current folder structure is not possible to create sub-category. From the readme:

content/my-username/blog/my-category/post/2024-01-10-15-35-45_tag1,tag2_my-post-slug.md

For simplicity we will keep current folder structure.

ashraf21c commented 4 months ago

Oh, yes, tags is OK. The correct Arabic translation for "tags" is "وسوم".

danpros commented 4 months ago

You are welcome to create pull request to fix that.