Recently Written · git

tmpl

Insanely simple templates

git clone https://github.com/equwal/tmpl

Log | Files | Refs


epub.css (1882 bytes)

1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html>
3 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
4 <head>
5   <meta charset="utf-8" />
6   <meta name="generator" content="pandoc" />
7   <title>$pagetitle$</title>
8   <style>
9 $if(csl-css)$
10     $styles.citations.html()$
11 $endif$
12 $if(highlighting-css)$
13     /* CSS for syntax highlighting */
14     $highlighting-css$
15 $endif$
16   </style>
17 $for(css)$
18   <link rel="stylesheet" type="text/css" href="$css$" />
19 $endfor$
20 $for(header-includes)$
21   $header-includes$
22 $endfor$
23 </head>
24 <body$if(coverpage)$ id="cover"$endif$$if(body-type)$ epub:type="$body-type$"$endif$>
25 $if(titlepage)$
26 <section epub:type="titlepage" class="titlepage">
27 $for(title)$
28 $if(title.type)$
29   <h1 class="$title.type$">$title.text$</h1>
30 $else$
31   <h1 class="title">$title$</h1>
32 $endif$
33 $endfor$
34 $if(subtitle)$
35   <p class="subtitle">$subtitle$</p>
36 $endif$
37 $for(author)$
38   <p class="author">$author$</p>
39 $endfor$
40 $for(creator)$
41   <p class="$creator.role$">$creator.text$</p>
42 $endfor$
43 $if(publisher)$
44   <p class="publisher">$publisher$</p>
45 $endif$
46 $if(date)$
47   <p class="date">$date$</p>
48 $endif$
49 $if(rights)$
50   <div class="rights">$rights$</div>
51 $endif$
52 $if(abstract)$
53 <div class="abstract">
54 <div class="abstract-title">$abstract-title$</div>
55 $abstract$
56 </div>
57 $endif$
58 </section>
59 $else$
60 $if(coverpage)$
61 <div id="cover-image">
62 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $cover-image-width$ $cover-image-height$" preserveAspectRatio="xMidYMid">
63 <image width="$cover-image-width$" height="$cover-image-height$" xlink:href="../media/$cover-image$" />
64 </svg>
65 </div>
66 $else$
67 $for(include-before)$
68 $include-before$
69 $endfor$
70 $body$
71 $for(include-after)$
72 $include-after$
73 $endfor$
74 $endif$
75 $endif$
76 </body>
77 </html>
78