all repos — site @ d5d64df5902a3ecbe69c174b82d59230c90ca021

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    <h1>{{ index .Meta "title" }}</h1>
18    {{ .Body }}
19    <table>
20      {{ $posts := .Extra }}
21      {{ range $posts }}
22      <tr>
23        <td align="left">
24          <p><a href=/blog/{{ .Meta.slug }}>{{ .Meta.title }}</a></p>
25          <p id="subtitle">{{ .Meta.subtitle }}</p>
26        </td>
27        {{ $dateStr := .Meta.date }}
28        {{ $date := parsedate $dateStr }}
29        <td align="right" class="index-date">{{ $date.Format "02 Jan, 2006" }}</td>
30      </tr>
31      {{ end }}
32    </table>
33  </main>
34  <footer>
35    {{ template "partials/footer.html" }}
36  </footer>
37</body>
38
39</html>