1{{ define "main" }}
2<div class="list">
3 <h1>{{ .Title }}</h1>
4 <div class="content">
5 {{ .Content | safeHTML }}
6 </div>
7 <p>There are RSS feeds for <em>all</em> of the categories and tags on the site. If you want to subscribe to one of them, navigate to that list and <a href="index.xml">click here</a>; you'll be taken to the specific feed.</p>
8 <form action="https://duckduckgo.com/" method="get">
9 <input name="sites" type="hidden" value="secluded.site">
10 <input aria-label="Search this blog." name="q" type="text" placeholder="🔎 Search this site with DuckDuckGo" >
11 </form>
12 {{ $title := .Title }}
13 {{ if eq $title "Posts" }}
14 <div class="categories">
15 <h2>Categories</h2>
16 <p>
17 {{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
18 <a class="button" href="{{.Permalink}}">{{.Title}}</a>
19 {{- end }}
20 </p>
21 </div>
22 {{ end }}
23
24 <hr/>
25
26 <div class="posts">
27 <ul class="posts-list">
28 {{- range .Pages }}
29 <li class="posts-item">
30 <a href="{{.Permalink}}">
31 <span class="posts-title">{{.Title}}</span>
32 <span class="posts-day">{{ if .Site.Params.dateformShort }}{{ .Date.Format .Site.Params.dateformShort }}{{ else }}{{ .Date.Format "Jan 02"}}{{ end }}</span>
33 </a>
34 <p>{{ .Summary | truncate 140 }}</p>
35 <p>
36 {{- range (.GetTerms "tags") }}
37 <a class="button" href="{{.Permalink}}">{{.Title}}</a>
38 {{- end }}
39 </p>
40 </li>
41 {{- end }}
42 </ul>
43 </div>
44</div>
45{{ end }}