Two other minor code formating changes for readability.
This commit is contained in:
parent
2459e992ee
commit
218accf465
1 changed files with 2 additions and 7 deletions
|
|
@ -38,11 +38,7 @@ fn gensidebar {
|
||||||
ls -F $sitedir/./$req_paths_list >[2]/dev/null \
|
ls -F $sitedir/./$req_paths_list >[2]/dev/null \
|
||||||
| sed 's!^'$sitedir'!!; '^$dirfilter^'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; '^$dirclean \
|
| sed 's!^'$sitedir'!!; '^$dirfilter^'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; '^$dirclean \
|
||||||
| sort -u | awk -F/ '
|
| sort -u | awk -F/ '
|
||||||
function p(x, y, s) {
|
function p(x, y, s) { for(i=0; i < x-y; i+=1) print s }
|
||||||
for(i=0; i < x-y; i+=1)
|
|
||||||
print s
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
d = ""
|
d = ""
|
||||||
if(match($0, "/$"))
|
if(match($0, "/$"))
|
||||||
|
|
@ -62,8 +58,7 @@ fn gensidebar {
|
||||||
else
|
else
|
||||||
print "<li><a href=\"" path "\">› " bname "</a></li>"
|
print "<li><a href=\"" path "\">› " bname "</a></li>"
|
||||||
}
|
}
|
||||||
END { p(lNF, 0, "</ul>") }
|
END { p(lNF, 0, "</ul>") }'
|
||||||
'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue