gmisail / Nice

A static site generator that is not mean.
MIT License
24 stars 2 forks source link

Tags for Posts #11

Open gmisail opened 5 years ago

gmisail commented 5 years ago

Create a new directory called _tags which has one HTML file for each tag. There is a special layout (or, expose the data to posts) which renders a list of all the posts with a specific tag. For instance, if you had 3 posts (two with the tag 'code' and one with the tag 'life') it would generate the following structure in _public:

_tags/
_tags/code.html
_tags/life.html

Each HTML file is a rendered list of all of the posts with that tag.