Attempting to make a 6x9 format
[themediocreprogrammer.git] / Pandoc / templates / smashwords-epub.html
diff --git a/Pandoc/templates/smashwords-epub.html b/Pandoc/templates/smashwords-epub.html
new file mode 100644 (file)
index 0000000..28821d5
--- /dev/null
@@ -0,0 +1,108 @@
+<?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>
+        <link rel="stylesheet" type="text/css" href="$css$" />
+    </head>
+    <body>
+    
+        $if(titlepage)$
+            $for(title)$
+                $if(title.text)$
+                    <h1 class="uppercase">$title.text$</h1>
+                $else$
+                    <h1 class="uppercase">$title$</h1>
+                $endif$
+            $endfor$
+            
+            $if(subtitle)$
+                <h3><em>$subtitle$</em></h3>
+            $endif$
+            
+            $for(year)$
+                <h4>© $year$</h4>
+            $endfor$
+            
+            $for(author)$
+                <h2 class="top-margin">$author$</h2>
+            $endfor$
+            
+            $for(creator)$
+                <h2>$creator.text$</h2>
+            $endfor$
+        
+            $if(publisher)$
+                <h4>$publisher$</h4>
+            $endif$
+            
+            <br><p class="center"><em>Smashwords Edition</em></p>
+            
+            $for(book1)$
+                $if(book1.title)$
+                    <p class="center top-margin"><i>Also Available</i></p>
+                    <br>
+                $endif$
+            $endfor$
+            
+            $for(book1)$
+                $if(book1.title)$
+                    <p class="center">$book1.title$</p>
+                $endif$
+            $endfor$
+            
+            $for(book2)$
+                $if(book2.title)$
+                    <p class="center">$book2.title$</p>
+                $endif$
+            $endfor$
+            
+            $for(book3)$
+                $if(book3.title)$
+                    <p class="center">$book3.title$</p>
+                $endif$
+            $endfor$
+            
+            $for(book4)$
+                $if(book4.title)$
+                    <p class="center">$book4.title$</p>
+                $endif$
+            $endfor$
+            
+            $for(book5)$
+                $if(book5.title)$
+                    <p class="center">$book5.title$</p>
+                $endif$
+            $endfor$
+            
+            $for(magnet)$
+                $if(magnet.link)$
+                    <p class="center top-margin"><a href="$magnet.link$"><img alt="Free Bonus" src="../Images/file0.jpg"></a></p>
+                $else$
+                    <p class="center top-margin"><img alt="Free Bonus" src="../Images/file0.jpg"></p>
+                $endif$
+            $endfor$
+            
+            $if(contributors)$
+            <div class="top-margin">
+            $for(contributors)$
+                $if(contributors.designer)$
+                    <h6>Book Design: $contributors.designer$</h6>
+                $endif$
+                $if(contributors.artist)$
+                    <h6>Cover Artist: $contributors.artist$</h6>
+                $endif$
+                $if(contributors.editor)$
+                    <h6>Editor: $contributors.editor$</h6>
+                $endif$
+            $endfor$
+            </div>
+            $endif$
+        $endif$
+        
+        $body$
+    </body>
+</html>