Really fix dir listing filter now
This commit is contained in:
parent
82f8dedcd2
commit
677a89989c
@ -81,7 +81,7 @@ fn genbody {
|
||||
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 }
|
||||
|
Loading…
Reference in New Issue
Block a user