summaryrefslogtreecommitdiff
path: root/content_template.pandoc
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2018-01-01 18:33:14 -0800
committeriximeow <me@iximeow.net>2018-01-01 18:33:14 -0800
commit44c5eaf7dba92eb46b3f9813c7c951a5dd399e9a (patch)
tree2305e3d8cbb850023ee36df4b09b7aa79c5954b9 /content_template.pandoc
parentdef510f49c55fb80678ff4ba93185c1f33012940 (diff)
transform headers html into a proper pandoc template
Diffstat (limited to 'content_template.pandoc')
-rw-r--r--content_template.pandoc73
1 files changed, 73 insertions, 0 deletions
diff --git a/content_template.pandoc b/content_template.pandoc
new file mode 100644
index 0000000..dc733b4
--- /dev/null
+++ b/content_template.pandoc
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$$if(dir)$ dir="$dir$"$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" />
+
+ <style>
+ body { background-color: #d7d7dd; }
+ .content {
+ margin: auto;
+ width: 80%
+ }
+ /* colors pulled from my current terminal config */
+ .codebox .black { color: #2e3436; }
+ .codebox .red { color: #cc0000; }
+ .codebox .green { color: #4e9a06; }
+ .codebox .yellow { color: #c4a000; }
+ .codebox .blue { color: #3465a4; }
+ .codebox .purple { color: #75507b; }
+ .codebox .cyan { color: #06989a; }
+ .codebox .white { color: #d3d7cf; }
+ .codebox {
+ /* terminal foreground */
+ color: #d3d7cf;
+ max-height: 512px;
+ overflow: auto;
+ /* terminal background */
+ background: #171717;
+ }
+ </style>
+
+ $for(css)$
+ <link rel="stylesheet" href="$css$" type="text/css" />
+ $endfor$
+ $if(math)$
+ $math$
+ $endif$
+ $for(header-includes)$
+ $header-includes$
+ $endfor$
+ </head>
+ <body>
+ $for(include-before)$
+ $include-before$
+ $endfor$
+ $if(title)$
+ <div id="$idprefix$header">
+ <h1 class="title">$title$</h1>
+ $if(subtitle)$
+ <h1 class="subtitle">$subtitle$</h1>
+ $endif$
+ $for(author)$
+ <h2 class="author">$author$</h2>
+ $endfor$
+ $if(date)$
+ <h3 class="date">$date$</h3>
+ $endif$
+ </div>
+ $endif$
+ $if(toc)$
+ <div id="$idprefix$TOC">
+ $toc$
+ </div>
+ $endif$
+ <div class="content">
+ $body$
+ </div>
+ $for(include-after)$
+ $include-after$
+ $endfor$
+ </body>
+</html>