site-neo/src/render.sh

7 lines
217 B
Bash
Raw Normal View History

2022-09-24 18:07:46 -04: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
m4 -DTITLE=${title[${i##.html}]} template.m4.html > ../${i/txti/html}
done