EPUB templates: Added css, highlighting-css, quotes variables.
Removed hardcoded link to stylesheet.css. Instead, the EPUB writer
now sets the css variable to stylesheet.css.
commit9fae8b31dd1fc3667993a35b7db6b252b85c840d
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateSun 4 Nov 2012, 18:57 (14 years ago)
parent0b394e7
epub-coverimage.html+13
@@ -5,6 +5,19 @@
55<title>$pagetitle$</title>
66<style type="text/css">img{ max-width: 100%; }</style>
77<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$
821</head>
922<body>
1023<div id="cover-image">
epub-page.html+13−1
@@ -3,7 +3,19 @@
33<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
44<head>
55<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$
719</head>
820<body>
921$body$
epub-titlepage.html+13−1
@@ -3,7 +3,19 @@
33<html xmlns="http://www.w3.org/1999/xhtml">
44<head>
55<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$
719</head>
820<body>
921<h1 class="title">$title$</h1>