mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 01:45:56 +00:00
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:
+9
-1
@@ -50,7 +50,7 @@ $if(title)$
|
||||
$if(html5)$
|
||||
<header>
|
||||
$else$
|
||||
<div id="header">
|
||||
<div id="$idprefix$header">
|
||||
$endif$
|
||||
<h1 class="title">$title$</h1>
|
||||
$for(author)$
|
||||
@@ -66,7 +66,15 @@ $else$
|
||||
$endif$
|
||||
$endif$
|
||||
$if(toc)$
|
||||
$if(html5)$
|
||||
<nav id="$idprefix$TOC">
|
||||
$toc$
|
||||
</nav>
|
||||
$else$
|
||||
<div id="$idprefix$TOC">
|
||||
$toc$
|
||||
</div>
|
||||
$endif$
|
||||
$endif$
|
||||
$body$
|
||||
$for(include-after)$
|
||||
|
||||
Reference in New Issue
Block a user