diff --git a/bin/controller.rc b/bin/controller.rc
index ad28110..996f264 100755
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -98,9 +98,9 @@ fn genbody {
if not if ( test -f pub/^$reqpath^.tpl )
template.awk pub/^$reqpath^.tpl | rc $rcargs
if not if(~ $body */index && ~ $#blogDirs 0) {
- echo '
' `{basename `{basename -d $body}}'
'
- echo ''
- ls -F `{ basename -d $body } | sed $dirfilter' s,^'$sitedir'/(.*),- \1
,'
+ echo '' `{basename -d $body|sed -e 's,.*//,,g' -e 's,/$,,' -e 's,/, / ,g' } '
'
+ echo ''
+ ls -F `{ basename -d $body } | sed -e $dirfilter' s,^'$sitedir'/.*/([^$].*),- \1
,'
echo '
'
}
if not if(~ $#blogDirs 0)