45 lines
1.7 KiB
HTML
45 lines
1.7 KiB
HTML
{{ define "main" }}
|
|
<div class="list">
|
|
<h1>{{ .Title }}</h1>
|
|
<div class="content">
|
|
{{ .Content | safeHTML }}
|
|
</div>
|
|
<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>
|
|
<form action="https://duckduckgo.com/" method="get">
|
|
<input name="sites" type="hidden" value="secluded.site">
|
|
<input aria-label="Search this blog." name="q" type="text" placeholder="🔎 Search this site with DuckDuckGo" >
|
|
</form>
|
|
{{ $title := .Title }}
|
|
{{ if eq $title "Posts" }}
|
|
<div class="categories">
|
|
<h2>Categories</h2>
|
|
<p>
|
|
{{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
|
|
<a class="button" href="{{.Permalink}}">{{.Title}}</a>
|
|
{{- end }}
|
|
</p>
|
|
</div>
|
|
{{ end }}
|
|
|
|
<hr/>
|
|
|
|
<div class="posts">
|
|
<ul class="posts-list">
|
|
{{- range .Pages }}
|
|
<li class="posts-item">
|
|
<a href="{{.Permalink}}">
|
|
<span class="posts-title">{{.Title}}</span>
|
|
<span class="posts-day">{{ if .Site.Params.dateformShort }}{{ .Date.Format .Site.Params.dateformShort }}{{ else }}{{ .Date.Format "Jan 02"}}{{ end }}</span>
|
|
</a>
|
|
<p>{{ .Summary | truncate 140 }}</p>
|
|
<p>
|
|
{{- range (.GetTerms "tags") }}
|
|
<a class="button" href="{{.Permalink}}">{{.Title}}</a>
|
|
{{- end }}
|
|
</p>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|