all repos — site @ acd18aeb7f5690a78de6115eb7d026853133cea0

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" }} &mdash; {{ .Cfg.Title }}
11  </title>
12<body>
13  <main>
14    <div class="sidenav">
15      {{ template "nav.html" }}
16    </div>
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  </main>
31  <footer>
32    {{ template "footer.html" }}
33  </footer>
34</body>
35
36</html>