1
0
mirror of https://git.earne.link/earnestma/dracublog synced 2025-04-05 19:39:04 +02:00
dracublog/layouts/_default/list.html
earnest ma c7b44080f4
fix! Broken link
(cherry picked from commit 9cb84187ebc04ed31dd184269ba12dd37d6bde99)
2021-02-10 23:33:01 -05:00

49 lines
1.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{ 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 }}
<li><i>
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format "Jan 02, 2006" }}
</time></i>
{{- if .OutputFormats.Get "html" }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{- else if .OutputFormats.Get "gemtext" }}
{{ with .OutputFormats.Get "gemtext" }}
<a href="{{ replace .Permalink "/gemini" "" 1 | safeURL }}">{{ end }}{{ .Title }}</a>
<small>(<a href="https://earnestma.xyz/what-is-gemini" target="_blank">what is gemini://?</a>)</small>
</li>
{{ end }}
{{ end }}
</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 }}