all repos — site @ 6d7167a3a603933222b25d31718bbc5179f854ca

source for my site, found at icyphox.sh

templates/text.html (view raw)

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