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 <h1>{{ index .Meta "title" }}</h1>
23 <h2 class="subtitle">{{ index .Meta "subtitle" }}</h2>
24 {{ .Body }}
25
26 <p class="muted" align="center">Questions or comments?
27 Send an
28 <a href="mailto:x@icyphox.sh?Subject=Re: {{ index .Meta "title" }}">email</a>.
29 </article>
30 </main>
31 <footer>
32 {{ template "partials/footer.html" }}
33 </footer>
34 </body>
35
36</html>