site-neo/src/_tape/render.sh
2023-01-21 23:23:04 +00:00

8 lines
276 B
Bash
Executable File

#!/bin/bash
# render.sh: part of the tape-and-string framework.
cd ..
declare -A title=([not_found]="404 - Page Not Found" [index]="Atlas48's Archives")
for i in *.txti; do
flatiron < $i | m4 -DTITLE=${title[${i##.html}]} main.html.m4 | sed '/^$/d' > ../${i/txti/html}
done