Pinjasaur / bic

Static blog generator, in bash
https://bic.sh/
10 stars 1 forks source link

feat: tags #18

Closed Pinjasaur closed 3 months ago

Pinjasaur commented 3 months ago

closes #10

This adds tag support as a means of organizing entries (effectively just posts).

I landed on a tags: ... string immediately below the title:

# My Title
tags: one, and-two, and-even-three

And the rest of the normal body goes here.

Internally, the mappings get stored as associative arrays. The posts get delimited by | characters, so those are now invalid characters in a filename and will cause bic to error out at build-time.

All the tags are available on a tags.html view and also use a tag.html and __tag.html to create tags/${tag}.html views to showing the mapping of individual tags to posts.

Notes:

Pinjasaur commented 3 months ago

cc @mfossen

Pinjasaur commented 3 months ago

Need to also update the sitemap.xml.