all repos — site @ cbdf205e98af24d7132abd7aa5a4346e31b224de

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    <article align="left">
17    <h1>{{ .Meta.title }}</h1>
18    <p> {{ .Meta.description }}</p>
19    {{- $books := .Yaml.books }}
20    {{- range $i, $yearMap := $books }}
21    {{- range $year, $books := $yearMap }}
22    <h2>{{ $year }}</h2>
23    <table>
24      <tbody>
25        {{- range $book := $books }}
26        <tr>
27          <td><a href="{{ $book.link }}">{{ $book.name }}</a></td>
28          <td>{{ $book.author }}</td>
29          <td>{{ $book.status }}</td>
30        </tr>
31        {{- end }}
32      </tbody>
33    </table>
34    {{- end }}
35    {{- end }}
36    </article>
37  </main>
38  <footer>
39    {{ template "partials/footer.html" }}
40  </footer>
41</body>
42
43</html>