all repos — site @ 64b801d6cf19da7141806d2b9b5b412f677377b3

source for my site, found at icyphox.sh

templates/index.html (view raw)

 1<!DOCTYPE html>
 2<html lang=en>
 3  <head>
 4    {{ template "head.html" }}
 5  </head>
 6
 7  <title>
 8    {{ index .Meta "title" }}
 9  </title>
10<body>
11  <main> 
12    <header>
13      {{ template "nav.html" }}
14    </header>
15    {{ .Body }}
16    <table>
17      {{ range $_, $post := .Posts }}
18      <tr>
19        <td align="left" class="index-post">
20          <a href=/blog/{{ index $post.Meta "slug" }}>{{ index $post.Meta "title" }}</a>
21        </td>
22        {{ $dateStr := index $post.Meta "date" }}
23        {{ $date := parsedate $dateStr }}
24        <td align="right" class="index-date">{{ $date.Format "02 Jan, 2006" }}</td>
25      </tr>
26      {{ end }}
27    </table>
28    <p><em><b>Note</b>: Opinions expressed in these posts may differ from those that I hold presently.</em></p>
29    </section>
30  </main>
31  <footer>
32    {{ template "footer.html" }}
33  </footer>
34</body>
35
36</html>