swerc

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

commit a52e4f3b4ac496709722f04de9beaa881821a41c
parent 6bfd96417c1715c8e2886f0b7a0fa9366ad589ca
Author: Kris Maglione <jg@suckless.org>
Date:   Tue,  5 Jun 2007 01:52:37 +0200

Fixed botched merge.
Diffstat:
Mbin/controller.rc | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/bin/controller.rc b/bin/controller.rc @@ -76,6 +76,8 @@ fn genbody { markdown.pl < $body.md if not if ( test -f $body.tpl ) template.awk $body.tpl | rc + if not if ( ~ $body */blog/index */blog//index && ~ $#blogDirs 0 ) + blogDirs = `{basename -d $body} if not if(~ $body */index && ~ $#blogDirs 0) { echo '<h1>' `{basename `{basename -d $body}}'</h1>' echo '<ul>' @@ -89,6 +91,7 @@ fn genbody { if(! ~ $#blogDirs 0) { if ( ! ~ $blogTitle '' ) echo '<h1>'$"blogTitle'</h1>' + echo '<div align="right">(<a href="index.rss">rss feed</a>)</div>' for ( f in `{ sortedBlogPostList $blogDirs } ) { title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' } du=`{ls -l $f}