blob: 7a3c97ff128672daad8c8ad8699b33084a5eca50 (
plain) (
blame)
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
|
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Child templates can choose to overwrite the default title -->
{{ define "title" }}<title>samanthony.xyz</title>{{ end }}
{{ template "title" }}
<link rel="stylesheet" href="/css/style.css">
<!-- Child templates can apply their own styles -->
{{ define "style" }}{{ end }}
{{ template "style" }}
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="/css/syntax.css">
</head>
<body>
<nav>
{{ $this_section := .Nav.ThisSection }}
{{ range .Nav.Links }}
{{ if eq .Href $this_section }}
<a class="this-section" href="{{ .Href }}">
/<span class="label">{{ .Label }}</span>
</a>
{{else }}
<a href="{{ .Href }}">
|<span class="label">{{ .Label }}</span>
</a>
{{ end }}
{{ end }}
<hr>
</nav>
<main>
{{ template "body_content" }}
</main>
</body>
</html>
|