ref: 80cb9b4e35417f140e6a838dd814130defe78585
parent: 0b27988652874a51f1edd896f421afdf40ba5e3d
author: uriel <uriel@engel.se.cat-v.org>
date: Sun Jun 3 05:02:58 EDT 2007
Really fix dir listing filter now
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -81,7 +81,7 @@
if ( ~ $body */index ) {
echo '<h1>' `{basename `{basename -d $body}}'</h1>'
echo '<ul>'
- ls -F `{ basename -d $body } |grep -v '(^\.|/_[^/]*$)' | sed -e 's,^./,,' -e 's,\.md$,,' -e 's,^'$sitedir'/([^/]*[/]?)+,<li><a href="\1">\1</a></li>,'
+ ls -F `{ basename -d $body } |grep -v '/[_.][^/]*$' | sed -e 's,^./,,' -e 's,\.md$,,' -e 's,^'$sitedir'/([^/]*[/]?)+,<li><a href="\1">\1</a></li>,'
echo '</ul>'
}
if not { template.awk inc/404.tpl | rc }