diff --git a/bin/werc.rc b/bin/werc.rc index efc9d3e..680ce6f 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -26,7 +26,9 @@ fn hide_paths { } # Sidebar -fn gensidebar { +fn nav_tree { + if(! ~ $#sideBarNavTitle 0) + echo '
'$"sideBarNavTitle':
' # Ignore stderr, last path element might be a file that doesn't exist (eg., foo for foo.md) # /./ to deal with p9p's ls failure to follow dir symlinks otherwise ls -F $sitedir/./$req_paths_list >[2]/dev/null \ @@ -135,7 +137,7 @@ path=(. $PLAN9/bin ./bin/ /bin/ /usr/bin) headers=lib/headers.tpl master_template=default_master.tpl res_tail='