Skip to content

Commit

Permalink
Split epub-page.html into default.epub and default.epub3.
Browse files Browse the repository at this point in the history
  • Loading branch information
John MacFarlane committed Nov 5, 2012
1 parent 1709949 commit ba97adf
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
29 changes: 29 additions & 0 deletions default.epub
@@ -0,0 +1,29 @@
<?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" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>$pagetitle$</title>
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
</style>
$endif$
$for(css)$
<link rel="stylesheet" type="text/css" href="$css$" />
$endfor$
</head>
<body>
$if(titlepage)$
<h1 class="title">$title$</h1>
$for(author)$
<h2 class="author">$author$</h2>
$endfor$
$if(date)$
<h3 class="date">$date$</h3>
$endif$
$else$
$body$
$endif$
</body>
</html>

10 changes: 5 additions & 5 deletions epub-page.html → default.epub3
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html$if(epub3)$$else$ PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"$endif$>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>$pagetitle$</title>
Expand All @@ -14,17 +14,17 @@
</style>
$endif$
$for(css)$
<link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" />
<link rel="stylesheet" href="$css$" />
$endfor$
</head>
<body>
$if(titlepage)$
<h1 class="title">$title$</h1>
<h1 class="title">$title$</h1>
$for(author)$
<h2 class="author">$author$</h2>
<h2 class="author">$author$</h2>
$endfor$
$if(date)$
<h3 class="date">$date$</h3>
<h3 class="date">$date$</h3>
$endif$
$else$
$body$
Expand Down

0 comments on commit ba97adf

Please sign in to comment.