Here's an example: https://github.com/eatonphil/notes.eatonphil.com/blob/master.... It's longer than usual since it embeds parts of the home page html inside it.
These scripts last for years and only change slightly over time. Very low maintenance.
Here's an example: https://github.com/eatonphil/notes.eatonphil.com/blob/master.... It's longer than usual since it embeds parts of the home page html inside it.
These scripts last for years and only change slightly over time. Very low maintenance.
Writing a small static site generator for a personal site can be done in an afternoon, and it's fun.
You build a Rules file with steps for each of your file types and it loops through and builds your site. It comes with Markdown out of the box but you can make it do just about anything.
https://github.com/ivanstojic/pandoc-ssg/blob/master/Makefil...
The markdown library I use has not changed its API in over 3 years at least.
The only reason this script is more than two lines of markdown-related code is because I wanted to store headers for other things.
This script is the most complex of my SSGs because I write on this blog the most. But even then it's only 200 LoC which is still (to me) surprisingly small.
Other of my SSGs are even simpler and have no markdown renderer: just jinja and file walking code.
So I'm not really sure which part of <200 LoC and no upstream changes you consider a hassle.