859acea0b5
Every heading element semantically creates a new section. Three consecutive heading elements, e.g. `<h1></h1>`, `<h2></h2>`, `<h3></h3>`, are semantically equivallent to a section with two nested subsections. This is not the intended meaning of subtitle, author, and date, making plain `<p>` elements the better choice. This is one of the W3C's [common idioms]. This change is the result of discussions on issue jgm/pandoc#3119. [common idioms]: https://www.w3.org/TR/html5/common-idioms.html#common-idioms Fixes: jgm/pandoc#3119
67 lines
1.5 KiB
Text
67 lines
1.5 KiB
Text
<!DOCTYPE html>
|
||
<html$if(lang)$ lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="generator" content="pandoc">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||
$for(author-meta)$
|
||
<meta name="author" content="$author-meta$">
|
||
$endfor$
|
||
$if(date-meta)$
|
||
<meta name="dcterms.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;}</style>
|
||
$if(quotes)$
|
||
<style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
|
||
$endif$
|
||
$if(highlighting-css)$
|
||
<style type="text/css">
|
||
$highlighting-css$
|
||
</style>
|
||
$endif$
|
||
$for(css)$
|
||
<link rel="stylesheet" href="$css$">
|
||
$endfor$
|
||
$if(math)$
|
||
$math$
|
||
$endif$
|
||
<!--[if lt IE 9]>
|
||
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
|
||
<![endif]-->
|
||
$for(header-includes)$
|
||
$header-includes$
|
||
$endfor$
|
||
</head>
|
||
<body>
|
||
$for(include-before)$
|
||
$include-before$
|
||
$endfor$
|
||
$if(title)$
|
||
<header>
|
||
<h1 class="title">$title$</h1>
|
||
$if(subtitle)$
|
||
<p class="subtitle">$subtitle$</p>
|
||
$endif$
|
||
$for(author)$
|
||
<p class="author">$author$</p>
|
||
$endfor$
|
||
$if(date)$
|
||
<p class="date">$date$</p>
|
||
$endif$
|
||
</header>
|
||
$endif$
|
||
$if(toc)$
|
||
<nav id="$idprefix$TOC">
|
||
$toc$
|
||
</nav>
|
||
$endif$
|
||
$body$
|
||
$for(include-after)$
|
||
$include-after$
|
||
$endfor$
|
||
</body>
|
||
</html>
|