pawandubey / griffin

speedy and simplistic static site generator.
Apache License 2.0
27 stars 7 forks source link

Support taxonomies #20

Closed pawandubey closed 9 years ago

pawandubey commented 9 years ago

Right now Griffin does not support classification or grouping of the posts and pages in any way. However, this is a desirable feature. Users may want to keep a collection of pages under one category (such as "tutorials") and may want them to come under a common URL root, eg. For categories: www.example.com/categories/tutorials/my-tutorial/ www.example.com/categories/tutorials/my-second-tutorial/ or For tags: www.example.com/tags/java/i-love-java/ www.example.com/tags/code/i-love-java/

By convention, a piece of content "belongs" to only one category but can "have" many tags. That is, each post will have only one category, but will have a list of tags.

So add the required functionality to implement the same. With the option in the config file to switch on/off the feature.

Additional: provide URL rewriting choices to the users. See #21

pawandubey commented 9 years ago

Won't be supporting categories explicitly, as any file placed under a certain folder is already in that category(the folder name) implicitly.