templates/photoindex.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 <style>
9 table {
10 padding-top: 30px;
11 article p {
12 padding: 0;
13 }
14 }
15 </style>
16 </head>
17
18
19 <title>
20 {{ .Meta.title }} — {{ .Cfg.Title }}
21 </title>
22<body>
23 <main>
24 <div class="sidenav">
25 {{ template "partials/nav.html" }}
26 </div>
27 <article align="left">
28 <h1>{{ .Meta.title }}</h1>
29 {{ .Body }}
30 <section class="posts">
31 <ul>
32 {{ $posts := .Extra }}
33 {{ range $posts }}
34 <li>
35 <div class="post">
36 <a href=/photos/{{ .Meta.slug }}>{{ .Meta.title }} — {{ .Meta.season }}</a>
37 <p class="subtitle">{{ .Meta.camera }} · {{ .Meta.lens }} · {{ .Meta.film }}</p>
38 </div>
39 {{ $dateStr := .Meta.date }}
40 {{ $date := parsedate $dateStr }}
41 <div class="index-date">{{ $date.Format "02 Jan, 2006" }}</div>
42 </li>
43 {{ end }}
44 </ul>
45 </section>
46 </article>
47 </main>
48 <footer>
49 {{ template "partials/footer.html" }}
50 </footer>
51</body>
52
53</html>