75f4e41d7d
Changed markdown, rtf, and HTML-based templates accordingly. This allows you to set `toc: true` in the metadata; this previously produced strange results in some output formats. Closes #2872. For backwards compatibility, `toc` is still set to the toc contents. But it is recommended that you update templates to use `table-of-contents` for the toc contents and `toc` for a boolean flag.
68 lines
1.6 KiB
Text
68 lines
1.6 KiB
Text
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||
<meta name="generator" content="pandoc" />
|
||
$for(author-meta)$
|
||
<meta name="author" content="$author-meta$" />
|
||
$endfor$
|
||
$if(date-meta)$
|
||
<meta name="date" content="$date-meta$" />
|
||
$endif$
|
||
$if(keywords)$
|
||
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
|
||
$endif$
|
||
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
||
<style type="text/css">
|
||
code{white-space: pre-wrap;}
|
||
.smallcaps{font-variant: small-caps;}
|
||
.line-block{white-space: pre-line;}
|
||
$if(quotes)$
|
||
q { quotes: "“" "”" "‘" "’"; }
|
||
$endif$
|
||
</style>
|
||
$if(highlighting-css)$
|
||
<style type="text/css">
|
||
$highlighting-css$
|
||
</style>
|
||
$endif$
|
||
$for(css)$
|
||
<link rel="stylesheet" href="$css$" type="text/css" />
|
||
$endfor$
|
||
$if(math)$
|
||
$math$
|
||
$endif$
|
||
$for(header-includes)$
|
||
$header-includes$
|
||
$endfor$
|
||
</head>
|
||
<body>
|
||
$for(include-before)$
|
||
$include-before$
|
||
$endfor$
|
||
$if(title)$
|
||
<div id="$idprefix$header">
|
||
<h1 class="title">$title$</h1>
|
||
$if(subtitle)$
|
||
<h1 class="subtitle">$subtitle$</h1>
|
||
$endif$
|
||
$for(author)$
|
||
<h2 class="author">$author$</h2>
|
||
$endfor$
|
||
$if(date)$
|
||
<h3 class="date">$date$</h3>
|
||
$endif$
|
||
</div>
|
||
$endif$
|
||
$if(toc)$
|
||
<div id="$idprefix$TOC">
|
||
$table-of-contents$
|
||
</div>
|
||
$endif$
|
||
$body$
|
||
$for(include-after)$
|
||
$include-after$
|
||
$endfor$
|
||
</body>
|
||
</html>
|