diff options
author | iximeow <me@iximeow.net> | 2018-01-01 18:33:14 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2018-01-01 18:33:14 -0800 |
commit | 44c5eaf7dba92eb46b3f9813c7c951a5dd399e9a (patch) | |
tree | 2305e3d8cbb850023ee36df4b09b7aa79c5954b9 | |
parent | def510f49c55fb80678ff4ba93185c1f33012940 (diff) |
transform headers html into a proper pandoc template
-rw-r--r-- | content_template.pandoc | 73 | ||||
-rw-r--r-- | headers.html | 24 |
2 files changed, 73 insertions, 24 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> diff --git a/headers.html b/headers.html deleted file mode 100644 index 727dcb1..0000000 --- a/headers.html +++ /dev/null @@ -1,24 +0,0 @@ -<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> |