all repos — site @ abe24399fa27eeef584bcfc6eede205dda2bb266

source for my site, found at icyphox.sh

templates/photos.html (view raw)

 1<!doctype html>
 2<html lang=en>
 3  <head>
 4    {{ template "partials/head.html" }}
 5    <meta name="description" content="{{ index .Meta "subtitle" }}">
 6  <style>
 7    h1 {
 8      margin: 0px;
 9      padding: 0px;
10    }
11  </style>
12  </head>
13  <title>
14    {{ .Meta.title }} ({{ .Meta.season }}) &mdash; {{ .Cfg.Title }}
15  </title>
16  <body>
17  <main>
18    <div class="sidenav">
19      {{ template "partials/nav.html" }}
20    </div>
21    <article align="left">
22      <h1>{{ .Meta.title }} &mdash; {{ .Meta.season }}</h1>
23      <h2 class="subtitle"> {{ .Meta.camera }} · {{ .Meta.lens }} · {{ .Meta.film }} </h2>
24      <div class="image-grid">
25      {{ $photos := .Yaml.photos }}
26      {{ $d := .Yaml.defaults }}
27      {{ range $photos }}
28        <a href="https://cdn.icyphox.sh/{{ . }}">
29          <img src="https://cdn.icyphox.sh/fit?url=http://files.garage.koti.lan/{{ . }}&width={{ $d.width }}&height={{ $d.height }}" />
30        </a>
31      {{- end }}
32      </div>
33    </article>
34  </main>
35  <footer>
36    {{ template "partials/footer.html" }}
37  </footer>
38</body>
39
40</html>