ref: ce8fdf02508cccf4f62397779deb06ae8812b561
parent: 61d41b0f993cfcf8d7a4c6e0834b124b4796331b
author: Kris Maglione <jg@suckless.org>
date: Mon Jun 4 21:52:37 EDT 2007
Fixed botched merge.
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -76,6 +76,8 @@
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 @@
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}