New link_bar handler to be used in sidebars.
This commit is contained in:
parent
94a777ef1f
commit
a4c7445523
1 changed files with 12 additions and 0 deletions
|
|
@ -31,6 +31,18 @@ fn nav_tree {
|
||||||
END { p(lNF, 0, "</ul>") }'
|
END { p(lNF, 0, "</ul>") }'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn link_bar {
|
||||||
|
if(~ $1 -t) {
|
||||||
|
echo '<p class="sideBarTitle">'$2'</p>'
|
||||||
|
shift; shift
|
||||||
|
}
|
||||||
|
echo '<ul>'
|
||||||
|
while(! ~ $#* 0) {
|
||||||
|
echo '<li><a href="'$2'">- '$1'</a></li>'
|
||||||
|
shift; shift
|
||||||
|
}
|
||||||
|
echo '</ul>'
|
||||||
|
}
|
||||||
|
|
||||||
fn md_handler { $formatter < $1 }
|
fn md_handler { $formatter < $1 }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue