aboutsummaryrefslogtreecommitdiff
path: root/data/templates/default.epub3
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/default.epub3')
-rw-r--r--data/templates/default.epub38
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/default.epub3 b/data/templates/default.epub3
index f0feb147a..4f5bd6641 100644
--- a/data/templates/default.epub3
+++ b/data/templates/default.epub3
@@ -47,6 +47,13 @@ $if(rights)$
$endif$
</section>
$else$
+$if(coverpage)$
+<div id="cover-image">
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $cover-image-width$ $cover-image-height$" preserveAspectRatio="none">
+<image width="$cover-image-width$" height="$cover-image-height$" xlink:href="../media/$cover-image$" />
+</svg>
+</div>
+$else$
$for(include-before)$
$include-before$
$endfor$
@@ -55,6 +62,7 @@ $for(include-after)$
$include-after$
$endfor$
$endif$
+$endif$
</body>
</html>