diff --git a/bin/controller.rc b/bin/controller.rc
index 6028849..63c38b7 100755
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -81,7 +81,7 @@ fn genbody {
if ( ~ $body */index ) {
echo '
' `{basename `{basename -d $body}}'
'
echo ''
- ls -F `{ basename -d $body } |grep -v '(^\.|/_[^/]*$)' | sed -e 's,^./,,' -e 's,\.md$,,' -e 's,^'$sitedir'/([^/]*[/]?)+,- \1
,'
+ ls -F `{ basename -d $body } |grep -v '/[_.][^/]*$' | sed -e 's,^./,,' -e 's,\.md$,,' -e 's,^'$sitedir'/([^/]*[/]?)+,- \1
,'
echo '
'
}
if not { template.awk inc/404.tpl | rc }