38 lines
957 B
1
<!doctype html>
2
<html lang=en>
3
<head>
4
{{ template "partials/head.html" }}
5
<meta name="description" content="{{ index .Meta "subtitle" }}">
6
</head>
7
<title>
8
{{ index .Meta "title" }}
9
</title>
10
<body>
11
<main>
12
<div class="sidenav">
13
{{ template "partials/nav.html" }}
14
</div>
15
<article align="left">
16
<section class="post-date">
17
{{ $dateStr := index .Meta "date" }}
18
{{ $date := parsedate $dateStr }}
19
{{ $date.Format "02 Jan, 2006" }}
20
</section>
21
22
23
{{ if eq .Meta.draft "true" }}
24
<h1 class="title">{{ index .Meta "title" }} <span class="draft">[draft]</span></h1>
25
{{ else }}
26
<h1 class="title">{{ index .Meta "title" }}</h1>
27
{{ end }}
28
<h2 class="subtitle">{{ index .Meta "subtitle" }}</h2>
29
{{ .Body }}
30
31
</article>
32
</main>
33
<footer>
34
{{ template "partials/footer.html" }}
35
</footer>
36
</body>
37
38
</html>
39