all repos — site @ acd18aeb7f5690a78de6115eb7d026853133cea0

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      <div class="sidenav">
12        {{ template "nav.html" }}
13      </div>
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
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      </article>
29    </main>
30    <footer>
31      {{ template "footer.html" }}
32    </footer>
33  </body>
34
35</html>