diff options
Diffstat (limited to 'site/template.include')
-rw-r--r-- | site/template.include | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/site/template.include b/site/template.include new file mode 100644 index 0000000..200103a --- /dev/null +++ b/site/template.include | |||
@@ -0,0 +1,89 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html$if(lang)$ lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$> | ||
3 | <head> | ||
4 | <meta charset="utf-8"> | ||
5 | <meta name="generator" content="pandoc"> | ||
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | ||
7 | $for(author-meta)$ | ||
8 | <meta name="author" content="$author-meta$"> | ||
9 | $endfor$ | ||
10 | $if(date-meta)$ | ||
11 | <meta name="dcterms.date" content="$date-meta$"> | ||
12 | $endif$ | ||
13 | $if(keywords)$ | ||
14 | <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$"> | ||
15 | $endif$ | ||
16 | <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title> | ||
17 | $if(quotes)$ | ||
18 | <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style> | ||
19 | $endif$ | ||
20 | $if(highlighting-css)$ | ||
21 | <style type="text/css"> | ||
22 | $highlighting-css$ | ||
23 | </style> | ||
24 | $endif$ | ||
25 | $for(css)$ | ||
26 | <link rel="stylesheet" href="$css$"> | ||
27 | $endfor$ | ||
28 | $if(math)$ | ||
29 | $math$ | ||
30 | $endif$ | ||
31 | $for(header-includes)$ | ||
32 | $header-includes$ | ||
33 | $endfor$ | ||
34 | <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/feed.xml"/> | ||
35 | </head> | ||
36 | <body> | ||
37 | <div class="page"> | ||
38 | $for(include-before)$ | ||
39 | $include-before$ | ||
40 | $endfor$ | ||
41 | $if(title)$ | ||
42 | <header> | ||
43 | <div class="title"> | ||
44 | <p class="title-logo"> | ||
45 | <img class="title-logo" alt="" src="https://av.trans.chat/logo/logo.svg" /> | ||
46 | </p> | ||
47 | <h1 class="title">$title$</h1> | ||
48 | </div> | ||
49 | $if(subtitle)$ | ||
50 | <p class="subtitle">$subtitle$</p> | ||
51 | $endif$ | ||
52 | $for(author)$ | ||
53 | <p class="author">$author$</p> | ||
54 | $endfor$ | ||
55 | $if(date)$ | ||
56 | <p class="date">$date$</p> | ||
57 | $endif$ | ||
58 | <hr/> | ||
59 | <ul> | ||
60 | <li><a href="/">Home</a></li> | ||
61 | <li><a href="/manifesto.html">Manifesto</a></li> | ||
62 | <li><a href="/contrib.html">Help us improve this website!</a></li> | ||
63 | <li><a href="/resources.html">Resources</a></li> | ||
64 | <li><strong><a href="/irc.html">IRC chatrooms</a></strong></li> | ||
65 | </ul> | ||
66 | <hr/> | ||
67 | </header> | ||
68 | $endif$ | ||
69 | $if(return)$ | ||
70 | $return$ | ||
71 | $endif$ | ||
72 | $if(toc)$ | ||
73 | <nav id="$idprefix$TOC"> | ||
74 | $toc$ | ||
75 | </nav> | ||
76 | $endif$ | ||
77 | $if(toc)$ | ||
78 | <div class="pagetext"> | ||
79 | $endif$ | ||
80 | $body$ | ||
81 | $for(include-after)$ | ||
82 | $include-after$ | ||
83 | $endfor$ | ||
84 | $if(toc)$ | ||
85 | </div> | ||
86 | $endif$ | ||
87 | </div> | ||
88 | </body> | ||
89 | </html> | ||