Fixed botched merge.

This commit is contained in:
Kris Maglione 2007-06-05 01:52:37 +02:00
parent c132ecca6d
commit f9f2354d9f

View File

@ -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}