git.iko.soy/typeable/pandoc
on master help sign in
EPUB templates: Added css, highlighting-css, quotes variables.
9fae8b3John MacFarlane
epub-coverimage.html+13
@@ -5,6 +5,19 @@
5<title>$pagetitle$</title>
5<title>$pagetitle$</title>
6<style type="text/css">img{ max-width: 100%; }</style>
6<style type="text/css">img{ max-width: 100%; }</style>
7<link href="stylesheet.css" type="text/css" rel="stylesheet" />
7<link href="stylesheet.css" type="text/css" rel="stylesheet" />
8+$if(quotes)$
9+ <style type="text/css">
10+ q { quotes: "“" "”" "‘" "’"; }
11+ </style>
12+$endif$
13+$if(highlighting-css)$
14+ <style type="text/css">
15+$highlighting-css$
16+ </style>
17+$endif$
18+$for(css)$
19+ <link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" />
20+$endfor$
8</head>
21</head>
9<body>
22<body>
10<div id="cover-image">
23<div id="cover-image">
epub-page.html+13−1
@@ -3,7 +3,19 @@
3<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
3<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
4<head>
4<head>
5<title>$pagetitle$</title>
5<title>$pagetitle$</title>
6−<link href="stylesheet.css" type="text/css" rel="stylesheet" />
6+$if(quotes)$
7+ <style type="text/css">
8+ q { quotes: "“" "”" "‘" "’"; }
9+ </style>
10+$endif$
11+$if(highlighting-css)$
12+ <style type="text/css">
13+$highlighting-css$
14+ </style>
15+$endif$
16+$for(css)$
17+ <link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" />
18+$endfor$
7</head>
19</head>
8<body>
20<body>
9$body$
21$body$
epub-titlepage.html+13−1
@@ -3,7 +3,19 @@
3<html xmlns="http://www.w3.org/1999/xhtml">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
4<head>
5<title>$pagetitle$</title>
5<title>$pagetitle$</title>
6−<link href="stylesheet.css" type="text/css" rel="stylesheet" />
6+$if(quotes)$
7+ <style type="text/css">
8+ q { quotes: "“" "”" "‘" "’"; }
9+ </style>
10+$endif$
11+$if(highlighting-css)$
12+ <style type="text/css">
13+$highlighting-css$
14+ </style>
15+$endif$
16+$for(css)$
17+ <link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" />
18+$endfor$
7</head>
19</head>
8<body>
20<body>
9<h1 class="title">$title$</h1>
21<h1 class="title">$title$</h1>