Source code for the new secluded.site
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

42 lines
1.7 KiB

{{ define "main" }}
<div class="list">
<h1>{{ .Title }}</h1>
<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="&#128270; 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 }}