summaryrefslogtreecommitdiff
path: root/templates/layouts/_default.html
blob: 2e7ec0cf02a58a5a17d5adb44f3a7f358e40bf77 (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
{{define "base"}}
<!DOCTYPE html>
<html lang="en">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="description" content="Home for a73x" />
	<meta name="author" content="a73x" />
	<meta name="viewport"
		content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" />
	<title>a73x</title>
	<link rel="stylesheet" href="/static/styles.css">
	<style>
		@font-face {
			font-family: 'Mono';
			src: url('/static/V1-ServerMono-Regular.woff2') format('woff2');
			font-weight: normal;
			font-style: normal;
		}

		.no-decorations {
			text-decoration: none;
		}

		code:not(pre > code) {
			background-color: #f0f0f0;
			padding: 0.2em 0.4em;
			border-radius: 3px;
		}

		blockquote {
			border-left: 2px solid #000000;
			padding-left: 10px;
		}

		code {
			font-family: "Mono";
		}

		h1 {
			margin-bottom: 0;
		}

		body {
			max-width: 70ch;
			font-family: "Mono";
		}

		nav ul {
			display: flex;
			list-style: none;
		}

		nav ul li {
			margin-right: 20px;
		}
	</style>
</head>
<body>
	<h1>a73x</h1>
	<sub>high effort, low reward</sub>
	<nav>
		<ul>
		<!--{{$.Path}}-->
		{{ range $key, $value := .Nav}}
		<!--{{$key}}-->
		{{ if eq $.Path $key }}
			<li><a href="{{$key}}">{{$value.Meta.title}}</a></li>
		{{else}}
			<li><a class="no-decorations" href="{{$key}}">{{$value.Meta.title}}</a></li>
		{{end}}
		{{end}}
		</ul>
	</nav>
	{{ template "content" . }}
	<footer>
		<br />​
		<hr />​​​​​​​​​​​​​​​​​​​<br />​​​​​
		<p>see something you disagree with? email: <a href="mailto:[email protected]">[email protected]</a></p>
	</footer>
</body>

</html>
{{end}}