all repos — site @ b146ade7cf94ee75538c24cf05c5192ef5b9ebcc

source for my site, found at icyphox.sh

templates/reading.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
 8  <title>
 9    {{ .Meta.title }} &mdash; {{ .Cfg.Title }}
10  </title>
11<body>
12  <main>
13    <div class="sidenav">
14      {{ template "partials/nav.html" }}
15    </div>
16    <h1>{{ .Meta.title }}</h1>
17    {{- $books := .Yaml.books }}
18    {{- range $i, $yearMap := $books }}
19    {{- range $year, $books := $yearMap }}
20    <h2>{{ $year }}</h2>
21    <table>
22      <tbody>
23        {{- range $book := $books }}
24        <tr>
25          <td><a href="{{ $book.link }}">{{ $book.name }}</a></td>
26          <td>{{ $book.author }}</td>
27          <td>{{ $book.status }}</td>
28        </tr>
29        {{- end }}
30      </tbody>
31    </table>
32    {{- end }}
33    {{- end }}
34  </main>
35  <footer>
36    {{ template "partials/footer.html" }}
37  </footer>
38</body>
39
40</html>