Tags in Swyxkit
swyx
Swyxkit has basically always had a tagging system in the schema, but we just never used it:
You specify it in frontmatter (like in this post) as a simple comma separated string:
---
tags: comments, utterances, github cms
---
or as a yaml array of strings
---
tags:
- comments
- utterances
- github cms
---
Tags are alternatives to categories, which are singletons that have special meaning (different layouts, dedicated filters).
Blog index
First thing to do was to modify <IndexCard
to display them:
of course we also needed to test and defensively guard against too many tags...
individual blogposts
then display them on the post in a way that is robust to overtagging:
search
then make each link back to search.