all repos — site @ 3eed3882e25aa252436ba981fc13b4790bf7494b

source for my site, found at icyphox.sh

templates/blog.html (view raw)

 1<!doctype html>
 2<html lang=en>
 3  <head>
 4    {{ template "partials/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    {{ .Meta.title }} &mdash; {{ .Cfg.Title }}
11  </title>
12<body>
13  <main>
14    <div class="sidenav">
15      {{ template "partials/nav.html" }}
16    </div>
17    {{ .Body }}
18    <table>
19      {{ $posts := .Extra }}
20      {{ range $posts }}
21      <tr>
22        <td align="left">
23          <p><a href=/blog/{{ .Meta.slug }}>{{ .Meta.title }}</a></p>
24          <p id="subtitle">{{ .Meta.subtitle }}</p>
25        </td>
26        {{ $dateStr := .Meta.date }}
27        {{ $date := parsedate $dateStr }}
28        <td align="right" class="index-date">{{ $date.Format "02 Jan, 2006" }}</td>
29      </tr>
30      {{ end }}
31    </table>
32  </main>
33  <footer>
34    {{ template "partials/footer.html" }}
35  </footer>
36</body>
37
38</html>