summaryrefslogtreecommitdiff
path: root/content_template.pandoc
blob: d748c4ac135dfc79e07133b38e1e1cb226f7f9d8 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!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.
       applicable for aha-rendered ANSI text */
    .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;
    }

    /* pandoc's default styling colors pre, but we don't need that */
    .sourceCode { background-color: transparent; }
    /*
       DataTypeTok
       classes, types, etc
    */
    .sourceCode .dt { color: #4e9a06; }

    /*
       KeyWordTok
       keywords. if, while, except, ...
    */
    .sourceCode .kw { color: #c4a000; }

    /* the following five are usually the same color for any language */
    /* decimal value, base N value, float */
    .sourceCode .dv, .sourceCode .bn, .sourceCode .fl { color: #cc0000; }
    /* strings */
    .sourceCode .st { color: #cc0000; }
    /* characters */
    .sourceCode .ch { color: #cc0000; }

    /* comments */
    .sourceCode .co { color: #3465a4; }
    /* other - dunno what this is! */
    .sourceCode .ot { color: #A57800; }
    /* alert - dunno what this is but it's pretty red. maybe errors? */
    .sourceCode .al { color: #CB4B16; font-weight: bold; }
    /* function names - same as other text for now */
    .sourceCode .fu { }
    /* region marker - i think ony applicable for c#-like? */
    .sourceCode .re { }
    /* error token - how does this differ from alert? */
    .sourceCode .er { color: #D30102; font-weight: bold; }

    .header {
      height: 128px;
      color: #b0b0ff;
    }

    .button {
      float: left;
      width: 256px;
      color: #00ff00;
    }
  </style>

  $for(css)$
    <link rel="stylesheet" href="$css$" type="text/css" />
  $endfor$
  $if(math)$
    $math$
  $endif$
  $for(header-includes)$
    $header-includes$
  $endfor$
  </head>
<body>
<div class="header">
<span class="button">writing index</span>
<span class="button">main index</span>
</div>
$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>