elprogramadormediocre/Pandoc/templates/amazon-epub.html

100 lines
3.3 KiB
HTML

<?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"$if(lang)$ xml:lang="$lang$"$endif$>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>$pagetitle$</title>
<link rel="stylesheet" type="text/css" href="$css$" />
</head>
<body>
$if(titlepage)$
$for(title)$
$if(title.text)$
<h1 class="uppercase">$title.text$</h1>
$else$
<h1 class="uppercase">$title$</h1>
$endif$
$endfor$
$if(subtitle)$
<h3><em>$subtitle$</em></h3>
$endif$
$for(year)$
<h4>© $year$</h4>
$endfor$
$for(author)$
<h2 class="top-margin">$author$</h2>
$endfor$
$for(creator)$
<h2>$creator.text$</h2>
$endfor$
$if(publisher)$
<h4>$publisher$</h4>
$endif$
$for(book1)$
$if(book1.title)$
<h4 class="top-margin">Also Available</h4>
$endif$
$endfor$
$for(book1)$$if(book1.link)$
<p class="center"><a href="$book1.link$">$book1.title$</a></p>
$else$
<p class="center">$book1.title$</p>
$endif$
$endfor$
$for(book2)$$if(book2.link)$
<p class="center"><a href="$book2.link$">$book2.title$</a></p>
$else$
<p class="center">$book2.title$</p>
$endif$
$endfor$
$for(book3)$$if(book3.link)$
<p class="center"><a href="$book3.link$">$book3.title$</a></p>
$else$
<p class="center">$book3.title$</p>
$endif$
$endfor$
$for(book4)$$if(book4.link)$
<p class="center"><a href="$book4.link$">$book4.title$</a></p>
$else$
<p class="center">$book4.title$</p>
$endif$
$endfor$
$for(book5)$$if(book5.link)$
<p class="center"><a href="$book5.link$">$book5.title$</a></p>
$else$
<p class="center">$book5.title$</p>
$endif$
$endfor$
$if(contributors)$
<div class="top-margin">
$for(contributors)$
$if(contributors.designer)$
<h6>Book Design: $contributors.designer$</h6>
$endif$
$if(contributors.artist)$
<h6>Cover Artist: $contributors.artist$</h6>
$endif$
$if(contributors.editor)$
<h6>Editor: $contributors.editor$</h6>
$endif$
$endfor$
</div>
$endif$
$endif$
$body$
</body>
</html>