Added templates for epub coverimage, titlepage, regular page.

This allows even more user customization.
This commit is contained in:
John MacFarlane 2011-12-18 12:26:21 -08:00
parent e2e8191e90
commit 15fb6a91bb
3 changed files with 54 additions and 0 deletions

14
epub-coverimage.html Normal file
View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>$title$</title>
<style type="text/css">img{ max-width: 100%; }</style>
<link href="stylesheet.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div id="cover-image">
<img src="$coverimage$" alt="$title$" />
</div>
</body>
</html>

18
epub-page.html Normal file
View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>$title$</title>
<link href="stylesheet.css" type="text/css" rel="stylesheet" />
</head>
<body>
<h1>$title$</h1>
$if(toc)$
<div id="$idprefix$TOC">
$toc$
</div>
$endif$
$body$
</body>
</html>

22
epub-titlepage.html Normal file
View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>$title$</title>
<link href="stylesheet.css" type="text/css" rel="stylesheet" />
</head>
<body>
<h1 class="title">$title$</h1>
$for(author)$
<h2 class="author">$author$</h2>
$endfor$
$if(date)$
<h3 class="date">$date$</h3>
$endif$
$if(toc)$
<div id="$idprefix$TOC">
$toc$
</div>
$endif$
</body>
</html>