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