diff options
Diffstat (limited to 'gen.sh')
-rwxr-xr-x | gen.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@ -pages=$(ls -S -t cont/| grep html | grep -v home.html) #lists the actual content +pages=$(ls -S -t cont/| grep html | grep -v index.html) #lists the actual content #-S -t so that the files are roughly in time order -#home is excluded and appended at the end to make sure it gets processed last -pages="$pages home.html" +#index is excluded and appended at the end to make sure it gets processed last +pages="$pages index.html" #clears the index rm index for page in $pages; do @@ -23,7 +23,7 @@ for page in $pages; do cat $page.tmp | sed '/\\\[SETDATE\]/bx; /\[SETDATE\].*/d;:x s/\\\[SETDATE\]/\[SETDATE\]/' >> $page #adds the index if its the homepage - if [ "$page" == "home.html" ]; then + if [ "$page" == "index.html" ]; then cat index >> $page rm index fi |