all repos — site @ b112be9a0fb27b5d28269a91a1d5abaa2cccc36e

source for my site, found at icyphox.sh

templates/text.html (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
<html lang=en>
  <head>
    {{ template "head.html" }}
  </head>
  <title>
    {{ index .Meta "title" }}
  </title>
  <body>
    <main> 
      <header>
        {{ template "nav.html" }}
      </header>
      <article align="left">
        <section class="post-date">
        {{ $dateStr := index .Meta "date" }}
        {{ $date := parsedate $dateStr }}
        {{ $date.Format "02 Jan, 2006" }}
        </section>

        <h1>{{ index .Meta "title" }}</h1>
        <h2 class="subtitle">{{ index .Meta "subtitle" }}</h2>
        {{ .Body }}
      </article>
      <p class="muted" align="center">Questions or comments?
      Send an
      <a href="mailto:x@icyphox.sh?Subject=Re: {{ index .Meta "title" }}">email</a>.
    </main>
    <footer>
      {{ template "footer.html" }}
    </footer>
  </body>

</html>