1{{ define "main" }}
2<div class="list">
3 <h1>{{ .Title }}</h1>
4 <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>
5 <form action="https://duckduckgo.com/" method="get">
6 <input name="sites" type="hidden" value="secluded.site">
7 <input aria-label="Search this blog." name="q" type="text"
8 placeholder="🔎 Search this site with DuckDuckGo" >
9 </form>
10 {{ $title := .Title }}
11 {{ if eq $title "Posts" }}
12 <div class="categories">
13 <h2>Categories</h2>
14 {{range ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
15 <a class="button" href="{{.Permalink}}">
16 <p>{{.Title}}</p>
17 </a>
18 {{end}}
19 </div>
20 {{ end }}
21
22 <hr/>
23
24 <div class="posts">
25 <ul class="posts-list">
26 {{- range .Pages }}
27 <li class="posts-item">
28 <a href="{{.Permalink}}">
29 <span class="posts-title">{{.Title}}</span>
30 <span class="posts-day">{{ if .Site.Params.dateformShort }}{{ .Date.Format .Site.Params.dateformShort }}{{ else }}{{ .Date.Format "Jan 02"}}{{ end }}</span>
31 </a>
32 <p>{{ .Summary | truncate 140 }}</p>
33 {{ range (.GetTerms "tags") }}
34 <a class="button" href="{{.Permalink}}">
35 <p>{{.Title}}</p>
36 </a>
37 {{ end }}
38 </li>
39 {{- end }}
40 </ul>
41 </div>
42 {{ end }}