diff --git a/homepage/homepage.local b/homepage/homepage.local index e8c99c8..7f5fd63 100755 --- a/homepage/homepage.local +++ b/homepage/homepage.local @@ -1,5 +1,20 @@ #!/bin/sh +set -x + +for f in ./blah/*.html +do + f="$(printf '%s\n' "$f" | sed 's,./blah/,,')" + test -n "$last" \ + && sed -i "./blah/$last" \ + -e "s,\$!NAVIGATION,$nav\>,g" \ + && nav="\<" \ + || true + nav="$nav^" + last="$f" +done +sed -i "s,\$!NAVIGATION,$nav,g" "./blah/$last" + ls ./blah/*.html \ | sed -e 's_.*/__g' \ -e 's/\.html$//g' \ @@ -8,10 +23,11 @@ ls ./blah/*.html \ | sed -e 's_.*_&_g' \ -e "1i\
.." \ +.." \ -e '$a' \ >./blah/index.html + sed -i feed.xml \ -e "1i\\