~zenomat/tinywiki

tinywiki/template.html -rw-r--r-- 1.2 KiB
728e6a1a — Adrian Change grep regex to not replace inter-document links 2 months ago
                                                                                
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
<!DOCTYPE html>
<head>
	<meta charset="utf-8" />
	$for(author-meta)$
	<meta name="author" content="$author-meta$" />
	$endfor$
	$if(date-meta)$
	<meta name="dcterms.date" content="$date-meta$" />
	$endif$
	$if(keywords)$
	<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
	$endif$
	$if(description-meta)$
	<meta name="description" content="$description-meta$" />
	$endif$
	<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
	<style>
$styles.html()$
	</style>
	$for(css)$
	<link rel="stylesheet" href="$css$" />
	$endfor$
	$if(math)$
	$math$
	$endif$
	$for(header-includes)$
	$header-includes$
	$endfor$
</head>
<body>
	$for(include-before)$
	$include-before$
	$endfor$
	$if(title)$
	<h1 class="title">$title$</h1>
	$endif$
	$if(home)$
	<p class="meta">
	<a href="$home$">home</a>
	</p>
	$endif$
	$if(subtitle)$
	<p class="meta">$subtitle$</p>
	$endif$
	$if(author)$
	$for(author)$
	<p class="meta">$author$</p>
	$endfor$
	$endif$
	$if(date)$
	<p class="meta">Last edited: $date$</p>
	$endif$
	$if(toc)$
	<nav id="$idprefix$TOC" role="doc-toc">
		$if(toc-title)$
		<h2 id="$idprefix$toc-title">$toc-title$</h2>
		$endif$
		$table-of-contents$
	</nav>
	$endif$
	$body$
	$for(include-after)$
	$include-after$
	$endfor$
</body>
</html>