all repos — site @ c53eb9f1b57d46b6f6b5365c582536613509cb2f

source for my site, found at icyphox.sh

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