2022-09-24 22:07:46 +00:00
|
|
|
#!/bin/bash
|
2022-10-04 21:42:16 +00:00
|
|
|
# render.sh: part of the tape-and-string framework.
|
2023-01-21 23:23:04 +00:00
|
|
|
cd ..
|
2022-09-24 22:07:46 +00:00
|
|
|
declare -A title=([not_found]="404 - Page Not Found" [index]="Atlas48's Archives")
|
|
|
|
for i in *.txti; do
|
2022-10-06 11:13:57 +00:00
|
|
|
flatiron < $i | m4 -DTITLE=${title[${i##.html}]} main.html.m4 | sed '/^$/d' > ../${i/txti/html}
|
2022-09-24 22:07:46 +00:00
|
|
|
done
|