all repos — site @ be298a6e0db69365a15de25ea686745e4c2557bf

source for my site, found at icyphox.sh

templates/blog.html (view raw)

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