my website at https://anirudh.fi
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://anirudh.fi/blog/feed.xml">
6 <meta name="description" content="{{ index .Meta "subtitle" }}">
7 </head>
8
9 <title>
10 {{ .Meta.title }} — {{ .Cfg.Title }}
11 </title>
12<body>
13 <main>
14 <div>
15 {{ template "partials/nav.html" }}
16 </div>
17
18 <article>
19 <h1>{{ index .Meta "title" }}</h1>
20 {{ .Body }}
21
22 <section class="mt-12">
23 <ul class="m-0 p-0">
24 {{ $posts := .Extra }}
25 {{ range $posts }}
26 {{ if not .Meta.unlisted }}
27 <li class="list-none py-2">
28 <div class="flex md:flex-row flex-col justify-between">
29 <div>
30 <a href=/{{ .Meta.slug }}>{{ .Meta.title }}</a>
31 {{ if .Meta.draft }}
32 (<span class="text-red-200">draft</span>)
33 {{ end }}
34 <p class="text-gray dark:text-dark-gray">{{ .Meta.subtitle }}</p>
35 </div>
36 {{ $dateStr := .Meta.date }}
37 {{ $date := parsedate $dateStr }}
38 <div class="index-date dark:text-dark-gray text-gray lowercase">{{ $date.Format "02 Jan, 2006" }}</div>
39 </div>
40 </li>
41 {{ end }}
42 {{ end }}
43 </ul>
44 </section>
45 <p class="pt-4 text-gray italic">Older posts have been unlisted from the index. Their URLs, however, remain.</p>
46 </article>
47 </main>
48 <footer>
49 {{ template "partials/footer.html" }}
50 </footer>
51</body>
52
53</html>