summary refs log tree commit diff
path: root/src/tmpl.html
blob: 70dba34b6010afa001855f6c82d9291713c5fa7f (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
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
	<link href="https://tilde.town/~dzwdz/blog/feed.atom" type="application/atom+xml" rel="alternate"/>
	<title>$pagetitle$</title>
	<link rel="icon" href="https://tilde.town/~dzwdz/favicon.gif" />
	<style>
body {
	max-width: 70ch;
	font-family: sans-serif;
	line-height: 1.4;
	margin: 2em auto;
	padding: 0 1ch;
	text-align: justify;
}

.sidenote {
	border: 1px solid currentColor;
	padding: 1ch;
	margin: 3em 1ch;
}

.sidenote > * {
	margin: 0;
}

h2, h3 {
	margin-bottom: 0;
	margin-top: 1.5em;
}

header { border-bottom: 1px solid currentColor; }
h1 { margin: 0; }
header p {
	margin: 0;
	margin-bottom: .5em;
}

.sourceCode .co { font-style: italic; }
pre {
	white-space: pre-wrap;
	border-left: .5ch lightgray solid;
	padding-left: .5ch;
}
sup {vertical-align: top; font-size: .6em;}
p code {font-size: 1rem;}
	</style>
$for(header-includes)$
	$header-includes$
$endfor$
</head>
<body>
<header>
<h1>$title$</h1>
<p>
$if(date)$
published on <span class="date">$date$</span>
$endif$
by <a href="https://tilde.town/~dzwdz/">dzwdz</a>
</p>
</header>
$body$
</body>
</html>