dracublog/layouts/_default/list.html

49 lines
1.0 KiB
HTML
Raw Normal View History

2021-02-05 11:36:58 -05:00
{{ define "main" }}
{{ if .Data.Singular }}
<h2>{{ .Title }}:</h2>
<p>
<a href="{{ "/blog" | relURL }}">Back to posts</a>
</p>
{{ else }}
<h2>{{ .Title }}</h2>
{{ end }}
{{ .Content }}
<small>
<p>Subscribe to the RSS feed for <i>this view</i> by <a href="index.xml">copying this link</a>.</p>
</small>
<ul>
{{ range .Pages }}
2021-02-09 17:09:17 -05:00
<li><i>
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format "Jan 02, 2006" }}
</time></i>
{{- if .OutputFormats.Get "html" }}
2021-02-05 11:36:58 -05:00
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
2021-02-09 17:09:17 -05:00
{{- else if .OutputFormats.Get "gemtext" }}
{{ with .OutputFormats.Get "gemtext" }}
<a href="{{ replace .Permalink "/gemini" "" 1 | safeURL }}">{{ end }}{{ .Title }}</a>
<small>(<a href="https://www.earnestma.xyz/gemini" target="_blank">what is gemini://?</a>)</small>
2021-02-05 11:36:58 -05:00
</li>
{{ end }}
2021-02-09 17:09:17 -05:00
{{ end }}
2021-02-05 11:36:58 -05:00
</ul>
{{ if .Data.Singular }}
{{else}}
<small>
<div>
Tags:
{{ range .Site.Taxonomies.tags }}
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>&nbsp;
{{ end }}
</div>
</small>
{{ end }}
{{ end }}