templates/text.html (view raw)
1<html lang=en>
2 <head>
3 {{ template "head.html" }}
4 </head>
5 <title>
6 {{ index .Meta "title" }}
7 </title>
8 <body>
9 <main>
10 <header>
11 {{ template "nav.html" }}
12 </header>
13 <article align="left">
14 <section class="post-date">
15 {{ $dateStr := index .Meta "date" }}
16 {{ $date := parsedate $dateStr }}
17 {{ $date.Format "02 Jan, 2006" }}
18 </section>
19
20 <h1>{{ index .Meta "title" }}</h1>
21 <h2 class="subtitle">{{ index .Meta "subtitle" }}</h2>
22 {{ .Body }}
23 </article>
24 <p class="muted" align="center">Questions or comments?
25 Send an
26 <a href=mailto:x@icyphox.sh?Subject=Re: {{ index .Meta "title" }}>email</a>.
27 </main>
28 <footer>
29 {{ template "footer.html" }}
30 </footer>
31 </body>
32
33</html>