swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit 23bab962d0e6b3e2a484cf8fb7f6243c849dfcd9
parent 33f04080618e2a59afb018af44a6d26aa71e6845
Author: root@engel.se.cat-v.org <unknown>
Date:   Sat,  2 Jun 2007 06:55:35 +0200

Fix directory listing
Diffstat:
Mbin/controller.rc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/controller.rc b/bin/controller.rc @@ -99,7 +99,7 @@ fn genbody { 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 }