Eric Bower
·
03 Sep 24
imgs.page.tmpl
1{{template "base" .}}
2
3{{define "title"}}{{.PageTitle}}{{end}}
4
5{{define "meta"}}
6<link rel="stylesheet" href="/smol.css" />
7{{end}}
8
9{{define "attrs"}}id="blog"{{end}}
10
11{{define "body"}}
12<header class="text-center">
13 <h1 class="text-2xl font-bold">{{.PageTitle}}</h1>
14 <nav>
15 <a href="{{.URL}}" class="text-lg">< blog</a>
16 </nav>
17 <hr />
18</header>
19<main>
20 <section class="albums">
21 {{range .Posts}}
22 <a href="{{.}}" class="thumbnail-link">
23 <article class="thumbnail-container">
24 <img class="thumbnail" src="{{.}}/300x" />
25 </article>
26 </a>
27 {{end}}
28 </section>
29</main>
30{{template "footer" .}}
31{{end}}