ref: 62126ee86483d00b8a6e0f49d30b001f6deeb428
parent: 61602f53d6271d7bc2d1d94639753e3dbed05c97
author: kris <[email protected]>
date: Sat Jun 2 02:55:35 EDT 2007
Fix directory listing
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -99,7 +99,7 @@
if ( ~ $body */index.md ) {
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 }