templates/text.html (view raw)
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 {{ if .Meta.draft }}
23 <h1>{{ index .Meta "title" }} <span class="draft">[draft]</span></h1>
24 {{ else }}
25 <h1>{{ index .Meta "title" }}</h1>
26 {{ end }}
27 <h2 class="subtitle">{{ index .Meta "subtitle" }}</h2>
28 {{ .Body }}
29
30 <p class="muted" align="center">Questions or comments?
31 Send an
32 <a href="mailto:x@icyphox.sh?Subject=Re: {{ index .Meta "title" }}">email</a>.
33 </article>
34 </main>
35 <footer>
36 {{ template "partials/footer.html" }}
37 </footer>
38 </body>
39
40</html>