diff --git a/homepage/blog b/homepage/blog index 77e3e4d..f0c2142 100755 --- a/homepage/blog +++ b/homepage/blog @@ -321,14 +321,14 @@ with open('../$0', 'r') as f: with open(day.split('\n')[0]+'.html', 'x') as g: g.write(prefix+day+'\n'+suffix) ";cd blah;for f in *.html;do #in glob we trust -test -z "$last" || sed -i "s,_NAVIGATION_,$nav\>
," \ -"$last";nav="";test -z "$last"||nav="$nav\<" -nav="$nav^";last="$f";done -sed -i "s,_NAVIGATION_,$nav
," "$last";for f in *.html;do #e unibus puellam +test -z "$last" || sed -i "s,_NAVIGATION_,$nav<A HREF=\"$f\">\></A></P>," \ +"$last";nav="<P>";test -z "$last"||nav="$nav<A HREF=\"$last\">\<</A>" +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 '%s\n' "$fi" "$fi"; done|sort -r|\ -sed -e "1i\ -.." -e '$a'>index.html +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 That's the source code to this blog, in its entirety. My writing @@ -362,7 +362,7 @@ with open('../$0', 'r') as f: ] ) + '\n' continue - elif day.split('\n')[0][:4] == '