HTML template: make TOC more customizable.

Users can now insert a header before the table of contents,
or include other styling.
Thanks to Bruce D'Arcus for the suggestion.
This commit is contained in:
John MacFarlane 2011-07-23 12:03:33 -07:00
parent 8590fab135
commit 8cb5fef740

View file

@ -50,7 +50,7 @@ $if(title)$
$if(html5)$ $if(html5)$
<header> <header>
$else$ $else$
<div id="header"> <div id="$idprefix$header">
$endif$ $endif$
<h1 class="title">$title$</h1> <h1 class="title">$title$</h1>
$for(author)$ $for(author)$
@ -66,7 +66,15 @@ $else$
$endif$ $endif$
$endif$ $endif$
$if(toc)$ $if(toc)$
$if(html5)$
<nav id="$idprefix$TOC">
$toc$ $toc$
</nav>
$else$
<div id="$idprefix$TOC">
$toc$
</div>
$endif$
$endif$ $endif$
$body$ $body$
$for(include-after)$ $for(include-after)$