site-neo/src/render.sh

8 lines
231 B
Bash
Raw Normal View History

2022-09-24 22:07:46 +00:00
#!/bin/bash
declare -A title=([not_found]="404 - Page Not Found" [index]="Atlas48's Archives")
for i in *.txti; do
flatiron <$i> tmp.html
2022-09-25 15:52:56 +00:00
m4 -DTITLE=${title[${i##.html}]} template.html.m4 > ../${i/txti/html}
rm tmp.html
2022-09-24 22:07:46 +00:00
done