all repos — site @ 1e37b651410d1b568b8e7a3c31dc0539377047a0

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    {{ index .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      {{ range $_, $post := .Posts }}
20      <tr>
21        <td align="left">
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 "partials/footer.html" }}
33  </footer>
34</body>
35
36</html>