diff --git a/bin/controller.rc b/bin/controller.rc index d5f8989..951ef09 100755 --- 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 '