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:
parent
8590fab135
commit
8cb5fef740
1 changed files with 9 additions and 1 deletions
10
default.html
10
default.html
|
@ -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)$
|
||||||
|
|
Loading…
Add table
Reference in a new issue