diff --git a/bin/corehandlers.rc b/bin/corehandlers.rc index 47fcf39..ca50deb 100644 --- a/bin/corehandlers.rc +++ b/bin/corehandlers.rc @@ -9,7 +9,6 @@ fn nav_tree { | 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, "/$")) @@ -25,11 +24,11 @@ fn nav_tree { gsub("_", " ", bname) if(index(ENVIRON["req_path"] "/", path) == 1) - print "
  • » " bname "" + print "
  • » " bname "
  • " else print "
  • › " bname "
  • " } - END { p(lNF, 1, "") }' + END { p(lNF, 0, "") }' } fn link_bar {