forked from
tangled.org/site
this repo has no description
1<!doctype html>
2<html lang=en>
3 <head>
4 {{ template "partials/head.html" }}
5 <meta name="description" content="{{ index .Meta "subtitle" }}">
6 </head>
7 <title>
8 {{ index .Meta "title" }}
9 </title>
10 <body class="bg-slate-100">
11 <div class="prose mx-auto px-1 pt-4 min-h-screen flex flex-col">
12 <main>
13 <div class="sidenav px-6">
14 {{ template "partials/nav.html" }}
15 </div>
16
17 <header>
18 <p class="post-date px-6 mb-0 text-sm">
19 {{ $dateStr := index .Meta "date" }}
20 {{ $date := parsedate $dateStr }}
21 {{ $date.Format "02 Jan, 2006" }}
22
23 <span class="mx-2 select-none">·</span>
24
25 by <a href="https://bsky.app/profile/{{.Meta.authorHandle}}">{{ .Meta.author }}</a>
26 </p>
27
28 {{ if eq .Meta.draft "true" }}
29 <h1 class="title px-6 mb-0">{{ index .Meta "title" }} <span class="draft">[draft]</span></h1>
30 {{ else }}
31 <h1 class="title px-6 mb-0">{{ index .Meta "title" }}</h1>
32 {{ end }}
33 <p class="italic px-6 mt-1 mb-0 text-lg">{{ index .Meta "subtitle" }}</p>
34 </header>
35
36 <article class="mt-5 bg-white px-6 py-2 rounded drop-shadow-sm">
37 {{ .Body }}
38 </article>
39 </main>
40 <footer>
41 {{ template "partials/footer.html" }}
42 </footer>
43 </div>
44 </body>
45
46</html>