Tweaks to cover-related EPUB stuff
Helps with the validation errors noted in #22.
This commit is contained in:
parent
3865ae0f5b
commit
c6f7460b82
3 changed files with 9 additions and 5 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<title>Cover</title>
|
<title>Cover</title>
|
||||||
<style>
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -17,6 +17,8 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<img src="cover.jpg" alt=""/>
|
<div>
|
||||||
|
<img src="cover.jpg" alt=""/>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<title>Cover</title>
|
<title>Cover</title>
|
||||||
<style>
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -17,6 +17,8 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<img src="cover.jpg" alt=""/>
|
<div>
|
||||||
|
<img src="cover.jpg" alt=""/>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ function writeOPF(chapters, contentPath, coverFiles, bookInfo) {
|
||||||
<manifest>
|
<manifest>
|
||||||
<item id="ncx" href="${NCX_FILENAME}" media-type="application/x-dtbncx+xml"/>
|
<item id="ncx" href="${NCX_FILENAME}" media-type="application/x-dtbncx+xml"/>
|
||||||
<item id="cover" href="${coverFiles.xhtml}" media-type="application/xhtml+xml"/>
|
<item id="cover" href="${coverFiles.xhtml}" media-type="application/xhtml+xml"/>
|
||||||
<item id="cover-image" properties="cover-image" href="${coverFiles.image}" media-type="${coverFiles.imageMimeType}"/>
|
<item id="cover-image" href="${coverFiles.image}" media-type="${coverFiles.imageMimeType}"/>
|
||||||
${manifestChapters}
|
${manifestChapters}
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue