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">
|
||||
<head>
|
||||
<title>Cover</title>
|
||||
<style>
|
||||
<style type="text/css">
|
||||
body {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
|
|
@ -17,6 +17,8 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img src="cover.jpg" alt=""/>
|
||||
<div>
|
||||
<img src="cover.jpg" alt=""/>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Cover</title>
|
||||
<style>
|
||||
<style type="text/css">
|
||||
body {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
|
|
@ -17,6 +17,8 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img src="cover.jpg" alt=""/>
|
||||
<div>
|
||||
<img src="cover.jpg" alt=""/>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ function writeOPF(chapters, contentPath, coverFiles, bookInfo) {
|
|||
<manifest>
|
||||
<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-image" properties="cover-image" href="${coverFiles.image}" media-type="${coverFiles.imageMimeType}"/>
|
||||
<item id="cover-image" href="${coverFiles.image}" media-type="${coverFiles.imageMimeType}"/>
|
||||
${manifestChapters}
|
||||
</manifest>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue