1
0

patch links

This commit is contained in:
dtb 2023-02-05 20:04:59 -05:00
parent de7e9249de
commit 475d9d7f1b

View File

@ -16,7 +16,7 @@ nav="$nav<A HREF=\"index.html\">^</A>";last="$f";done
sed -i "s,__NAVIGATION__,$nav</P>," "$last"
for f in *.html;do # e unibus puellam
fi="$(echo "$f" | cut -d . -f 1)";test "$fi" = "index" && continue
printf '<A HREF="%s.html">%s</A>\n' "$fi" "$fi"; done|sort -r|\
printf '<A HREF="/blah/%s.html">%s</A>\n' "$fi" "$fi"; done|sort -r|\
sed -e "1i<!DOCTYPE html><HTML><HEAD><TITLE>blah</TITLE></HEAD><BODY><PRE>\
<A HREF="..">..</A>" -e '$a</PRE></BODY></HTML>'>index.html
exit 0