all repos — site @ 7f62efe6bc667c7cb11a94f850da2509241d646a

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
 34
 35
 36
<!doctype html>
<html lang=en>
  <head>
    {{ template "partials/head.html" }}
    <meta name="description" content="{{ index .Meta "subtitle" }}">
  </head>
  <title>
    {{ index .Meta "title" }}
  </title>
  <body>
    <main>
      <div class="sidenav">
        {{ template "partials/nav.html" }}
      </div>
      <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 }}

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

</html>