4 ms·
I generally just have a makefile that for each page does `cat header.html page.html footer.html > out/page.html`. I realize this can be considered a "static sit
by mid-kid 2y ago
I generally just have a makefile that for each page does `cat header.html page.html footer.html > out/page.html`.
I realize this can be considered a "static site generator" but I think simple concatenation covers most of the painpoints of writing static sites manually, without introducing intermediate formats and complex processing.
Another option is PHP, which was practically made for the purpose of generating HTML. You can run it on your pages to generate static versions, and just use "include" directives with that.
- thombles 2y agoYou're right but in my experience the annoyance factor jumps up as soon as you start wanting an RSS feed.
- skydhash 2y agoI wonder if you can have a snippet for that (can be a script that generate the code for one item) It’s not like such blog is updated thrice a day!
- glandium 2y agoOr "server side includes".