diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-07-23 12:03:33 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-07-23 12:03:33 -0700 |
commit | 8cb5fef740725ee51ffed5022faa097f21336bcd (patch) | |
tree | b4228b98c0f5d5d3af67e0d2311d9d2f7bc349aa /default.html | |
parent | 8590fab1359fd618a7f8f737121c9413a8749d1a (diff) | |
download | pandoc-8cb5fef740725ee51ffed5022faa097f21336bcd.tar.gz |
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.
Diffstat (limited to 'default.html')
-rw-r--r-- | default.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/default.html b/default.html index 0e8d97fa0..387e4eb7d 100644 --- a/default.html +++ b/default.html @@ -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)$ |