3 ms·
I'm using what is probably the simplest static site generator: cat. for f in texts/*.html; do cat preamble.html "$f" postamble.html > out/$(basename "$f"
by peterbb_net 6y ago
I'm using what is probably the simplest static site generator: cat.
for f in texts/*.html; do
cat preamble.html "$f" postamble.html > out/$(basename "$f")
done
The front-page is written manually.
- bachmeier 6y agoI did something along those lines once, but I used https://github.com/susam/mdme https://github.com/susam/mdme as the preamble so I could write the posts in markdown rather than html. The index was an extra line to add links to index.html.