mirror of
https://github.com/greyscalepress/manifestos.git
synced 2025-01-07 05:48:00 -05:00
generate epub2 format output
This commit is contained in:
parent
c50b58054f
commit
dfe828b022
@ -97,6 +97,7 @@ pandoc -f markdown --template=../templates/custom $TEMP \
|
||||
--toc --toc-depth=1 \
|
||||
--listings \
|
||||
--include-before-body=../content/intro.txt \
|
||||
--to=epub2 \
|
||||
-o $OUTPUTEPUB
|
||||
|
||||
## End of file
|
||||
|
51
templates/custom.epub2
Normal file
51
templates/custom.epub2
Normal file
@ -0,0 +1,51 @@
|
||||
<?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>
|
||||
$if(highlighting-css)$
|
||||
<style type="text/css">
|
||||
$highlighting-css$
|
||||
background: #ddd;
|
||||
color: blue;
|
||||
</style>
|
||||
$endif$
|
||||
$for(css)$
|
||||
<link rel="stylesheet" type="text/css" href="$css$" />
|
||||
$endfor$
|
||||
</head>
|
||||
<body$if(coverpage)$ id="cover"$endif$>
|
||||
$if(titlepage)$
|
||||
$for(title)$
|
||||
$if(title.text)$
|
||||
<h1 class="$title.type$">$title.text$</h1>
|
||||
$else$
|
||||
<h1 class="title">$title$</h1>
|
||||
$endif$
|
||||
$endfor$
|
||||
$if(subtitle)$
|
||||
<h1 class="subtitle">$subtitle$</h1>
|
||||
$endif$
|
||||
$for(author)$
|
||||
<h2 class="author">$author$</h2>
|
||||
$endfor$
|
||||
$for(creator)$
|
||||
<h2 class="$creator.type$">$creator.text$</h2>
|
||||
$endfor$
|
||||
$if(publisher)$
|
||||
<p class="publisher">$publisher$</p>
|
||||
$endif$
|
||||
$if(date)$
|
||||
<p class="date">$date$</p>
|
||||
$endif$
|
||||
$if(rights)$
|
||||
<p class="rights">$rights$</p>
|
||||
$endif$
|
||||
$else$
|
||||
$body$
|
||||
$endif$
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user