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='' -sidebar=sidebar +ll_add handlers_bar_left nav_tree werc_root=`{pwd} for(i in siteTitle siteSubTitle pageTitle extraHeaders) $i = '' diff --git a/lib/default_master.tpl b/lib/default_master.tpl index 7165b07..078ca52 100644 --- a/lib/default_master.tpl +++ b/lib/default_master.tpl @@ -13,33 +13,17 @@ -% if(! ~ $#sidebar 0) { - -% }