waffelo.net/themes/plague/layouts/_default/list.html
2025-04-25 13:13:49 +02:00

25 lines
886 B
HTML

{{ define "main" }}
{{ range .Paginator.Pages }}
<!-- Tags -->
{{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }}
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
<div class="tagbutton">
<a href={{ .RelPermalink }} style="text-decoration: none; color: var(--text-color);" title="All pages with tag <i>{{$name}}</i>"><code>{{$name}} ({{$cnt}})</code></a>
</div>
{{end}}
{{end}}
<br>
<!-- Posts -->
<h2>Posts</h2>
<p>
<span class="post-date"><time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">[{{ .Date | time.Format "02/01/2006" }}]</time></span> -
<a href="{{ .RelPermalink }}">{{ .Title }}</a><br>
</p>
{{ end }}
{{ with .OutputFormats.Get "rss" -}}
<p><a href="{{ .Permalink }}"><img alt="RSS feed icon" src="{{ "icons/rss.png" | absURL }}"></a></p>
{{ end }}
{{ end }}