all repos — site @ 950e99b40722faa344912c7576df9c702925ad74

source for my site, found at icyphox.sh

templates/photoindex.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
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
<!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" }}">

    <style>
    table {
      padding-top: 30px;
      article p {
        padding: 0;
      }
    }
    </style>
  </head>


  <title>
    {{ .Meta.title }} &mdash; {{ .Cfg.Title }}
  </title>
<body>
  <main>
    <div class="sidenav">
      {{ template "partials/nav.html" }}
    </div>
    <article align="left">
    <h1>{{ .Meta.title }}</h1>
    {{ .Body }}
    <section class="mt-12">
    <ul class="m-0 p-0">
      {{ $posts := .Extra }}
      {{ range $posts }}
        <li class="list-none py-2">
          <div class="flex md:flex-row flex-col justify-between">
          <div>
            <a href=/photos/{{ .Meta.slug }}>{{ .Meta.title }} &mdash; {{ .Meta.season }}</a>
            <p class="dark:text-dark-gray text-gray">{{ .Meta.camera }} · {{ .Meta.lens }} · {{ .Meta.film }}</p>
          </div>
          {{ $dateStr := .Meta.date }}
          {{ $date := parsedate $dateStr }}
          <div class="dark:text-dark-gray text-gray lowercase">{{ $date.Format "02 Jan, 2006" }}</div>
          </div>
        </li>
      {{ end }}
    </ul>
    </section>
    </article>
  </main>
  <footer>
    {{ template "partials/footer.html" }}
  </footer>
</body>

</html>