all repos — site @ 4674f19217a98e2812ede2649b91515ece17858c

source for my site, found at icyphox.sh

templates/reading.html (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
<!doctype html>
<html lang=en>
  <head>
    {{ template "partials/head.html" }}
    <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml">
    <meta name="description" content="{{ index .Meta "subtitle" }}">

  <title>
    {{ .Meta.title }} &mdash; {{ .Cfg.Title }}
  </title>
<body>
  <main>
    <div class="sidenav">
      {{ template "partials/nav.html" }}
    </div>
    <article align="left">
    <h1>{{ .Meta.title }}</h1>
    <p> {{ .Meta.description }}</p>
    {{- $books := .Yaml.books }}
    {{- range $i, $yearMap := $books }}
    {{- range $year, $books := $yearMap }}
    <h2>{{ $year }}</h2>
    <section class="book-posts">
    <ul>
      {{- range $book := $books }}
        <li>
          <div class="post">
            <a href="{{ $book.link }}">{{ $book.name }}</a>
            <p class="subtitle author">{{ $book.author }}</p>
          </div>
          <span class="status">{{ $book.status }}</span>
        </li>
      {{- end }}
    </ul>
    </section>
    {{- end }}
    {{- end }}
    </article>
  </main>
  <footer>
    {{ template "partials/footer.html" }}
  </footer>
</body>

</html>