all repos — site @ f676557921c8bf90c1e73921fbee6d8e871c2f8e

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