all repos — site @ d50b6407000a7ec8428d1b4d6bcb99c64c635a93

source for my site, found at icyphox.sh

templates/index.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 "head.html" }}
  </head>

  <title>
    {{ index .Meta "title" }}
  </title>
<body>
  <main> 
    <header>
      {{ template "nav.html" }}
    </header>
    {{ .Body }}
    <table>
      {{ range $_, $post := .Posts }}
      <tr>
        <td align="left" class="index-post">
          <a href=/blog/{{ index $post.Meta "slug" }}>{{ index $post.Meta "title" }}</a>
        </td>
        {{ $dateStr := index $post.Meta "date" }}
        {{ $date := parsedate $dateStr }}
        <td align="right" class="index-date">{{ $date.Format "02 Jan, 2006" }}</td>
      </tr>
      {{ end }}
    </table>
    <p><em><b>Note</b>: Opinions expressed in these posts may differ from those that I hold presently.</em></p>
    </section>
  </main>
  <footer>
    {{ template "footer.html" }}
  </footer>
</body>

</html>