ref: 44336216a011b4098420ba5891e1951aad2c6af0
parent: 4728a01a0fe5655188f5c79558813968352f8f0d
author: sl <[email protected]>
date: Tue Mar 3 16:38:22 EST 2009
Stop generating an extra superfluous <ul></ul> in sidebar menu.
--- a/bin/corehandlers.rc
+++ b/bin/corehandlers.rc
@@ -9,6 +9,7 @@
| sed $dirfilter'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; s!^'$sitedir'!!; '$dirclean \
| sort -u | awk -F/ '
function p(x, y, s) { for(i=0; i < x-y; i+=1) print s }
+ BEGIN { lNF=1 }
{
d = ""
if(match($0, "/$"))
@@ -28,7 +29,7 @@
else
print "<li><a href=\"" path "\">› " bname "</a></li>"
}
- END { p(lNF, 0, "</ul>") }'
+ END { p(lNF, 1, "</ul>") }'
}
fn link_bar {