all repos — site @ master

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    <section class="book-posts">
24    <ul>
25      {{- range $book := $books }}
26        <li>
27          <div class="post">
28            <a href="{{ $book.link }}">{{ $book.name }}</a>
29            <p class="subtitle author">{{ $book.author }}</p>
30          </div>
31          <span class="status">{{ $book.status }}</span>
32        </li>
33      {{- end }}
34    </ul>
35    </section>
36    {{- end }}
37    {{- end }}
38    </article>
39  </main>
40  <footer>
41    {{ template "partials/footer.html" }}
42  </footer>
43</body>
44
45</html>