frontmatter.rec
a consistent metadata schema
2024-04-15
I write a lot of documents. Blog posts, articles, essays, games, slides, etc. And the documents I write target a lot of different formats: html, epub, plain text, pdf. For almost every document I write, there is an amount of metadata that I am interested in maintaining. That metadata usually manifests as āfrontmatterā because I usually draft everything I write in markdown before potentially converting it to some other format (such as groff) for presentation.
And so I present to you frontmatter.rec
, the document
metadata I consider mandatory for pretty much everything I write.
This is the minimum. Plenty of projects have unique specific metadata. e.g.Ā āratingā for a review site.
Usage:
Feel free to pop that into ~/bin/
or something. Maybe
replace document.md
with $*
.
And the resulting document boilerplate:
This is a result of me trying to standardize my document metadata across multiple projects, and noticing which individual fields feel the most reusable, and what combination of them make the metadata feel most complete.
Thatās all! Enjoy!
Resources