Permalink
Browse files

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.
  • Loading branch information...
1 parent 0b394e7 commit 9fae8b31dd1fc3667993a35b7db6b252b85c840d John MacFarlane committed Nov 5, 2012
Showing with 39 additions and 2 deletions.
  1. +13 −0 epub-coverimage.html
  2. +13 −1 epub-page.html
  3. +13 −1 epub-titlepage.html
View
@@ -5,6 +5,19 @@
<title>$pagetitle$</title>
<style type="text/css">img{ max-width: 100%; }</style>
<link href="stylesheet.css" type="text/css" rel="stylesheet" />
+$if(quotes)$
+ <style type="text/css">
+ q { quotes: "" "" "" ""; }
+ </style>
+$endif$
+$if(highlighting-css)$
+ <style type="text/css">
+$highlighting-css$
+ </style>
+$endif$
+$for(css)$
+ <link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" />
+$endfor$
</head>
<body>
<div id="cover-image">
View
@@ -3,7 +3,19 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>$pagetitle$</title>
-<link href="stylesheet.css" type="text/css" rel="stylesheet" />
+$if(quotes)$
+ <style type="text/css">
+ q { quotes: "" "" "" ""; }
+ </style>
+$endif$
+$if(highlighting-css)$
+ <style type="text/css">
+$highlighting-css$
+ </style>
+$endif$
+$for(css)$
+ <link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" />
+$endfor$
</head>
<body>
$body$
View
@@ -3,7 +3,19 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>$pagetitle$</title>
-<link href="stylesheet.css" type="text/css" rel="stylesheet" />
+$if(quotes)$
+ <style type="text/css">
+ q { quotes: "" "" "" ""; }
+ </style>
+$endif$
+$if(highlighting-css)$
+ <style type="text/css">
+$highlighting-css$
+ </style>
+$endif$
+$for(css)$
+ <link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" />
+$endfor$
</head>
<body>
<h1 class="title">$title$</h1>

0 comments on commit 9fae8b3

Please sign in to comment.