summaryrefslogtreecommitdiff
path: root/content_template.pandoc
blob: 589eb258c3a58a454ce96b5b6f00b142b97741f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!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; }
    code {
      background-color: #ccc4c4;
    }
    .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>