swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit fbd206e74f079b64cf0ad7f81256444009303617
parent f78d2ff17ee49cad62f968e4bfa9b5a66a199ca2
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Wed, 13 Jun 2007 11:58:22 +0200

Don't cascade blogDirs setting into individual blog dir items
Diffstat:
Mbin/controller.rc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/controller.rc b/bin/controller.rc @@ -80,7 +80,7 @@ fn genbody { if not if ( test -f $body.html ) cat $body.html | /bin/sed '0,/<body>/d; /<\/body>/,$d' if not if (~ $body *.html && test -f $body ) - sed '0,/<body>/d;/<\/body>/,$d' < $body + cat $body | /bin/sed -i '0,/<body[^>]*>/d;/<\/body>/,$d' if not if ( ~ $body */[bB]log/index */[bB]log//index && ~ $#blogDirs 0 ) blogDirs = `{basename -d $body} if not if(~ $body */index && ~ $#blogDirs 0) { @@ -119,6 +119,7 @@ if (! ~ $args '') { fpath=$sitedir for ( i in '' $args ) { fpath = $fpath/$i + blogDirs = () # We don't want blog settings to cascade into posts if ( test -f $fpath/_config ) . $fpath/_config }