epub, epub3: Added id="cover" to body of titlepage.
Closes jgm/pandoc#1758.
This commit is contained in:
parent
ec057f0ad3
commit
63443da450
2 changed files with 10 additions and 5 deletions
|
@ -15,8 +15,8 @@ $for(css)$
|
||||||
<link rel="stylesheet" type="text/css" href="$css$" />
|
<link rel="stylesheet" type="text/css" href="$css$" />
|
||||||
$endfor$
|
$endfor$
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
$if(titlepage)$
|
$if(titlepage)$
|
||||||
|
<body id="cover">
|
||||||
$for(title)$
|
$for(title)$
|
||||||
$if(title.text)$
|
$if(title.text)$
|
||||||
<h1 class="$title.type$">$title.text$</h1>
|
<h1 class="$title.type$">$title.text$</h1>
|
||||||
|
@ -42,8 +42,11 @@ $endif$
|
||||||
$if(rights)$
|
$if(rights)$
|
||||||
<p class="rights">$rights$</p>
|
<p class="rights">$rights$</p>
|
||||||
$endif$
|
$endif$
|
||||||
|
</body>
|
||||||
$else$
|
$else$
|
||||||
|
<body>
|
||||||
$body$
|
$body$
|
||||||
|
</body>
|
||||||
$endif$
|
$endif$
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -19,8 +19,8 @@ $for(css)$
|
||||||
<link rel="stylesheet" type="text/css" href="$css$" />
|
<link rel="stylesheet" type="text/css" href="$css$" />
|
||||||
$endfor$
|
$endfor$
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
$if(titlepage)$
|
$if(titlepage)$
|
||||||
|
<body id="cover">
|
||||||
<section epub:type="titlepage">
|
<section epub:type="titlepage">
|
||||||
$for(title)$
|
$for(title)$
|
||||||
$if(title.type)$
|
$if(title.type)$
|
||||||
|
@ -48,9 +48,11 @@ $if(rights)$
|
||||||
<p class="rights">$rights$</p>
|
<p class="rights">$rights$</p>
|
||||||
$endif$
|
$endif$
|
||||||
</section>
|
</section>
|
||||||
$else$
|
|
||||||
$body$
|
|
||||||
$endif$
|
|
||||||
</body>
|
</body>
|
||||||
|
$else$
|
||||||
|
<body>
|
||||||
|
$body$
|
||||||
|
</body>
|
||||||
|
$endif$
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue