bunteshaus.de/themes/buha/layouts/partials/layout/single/archive.html

15 lines
706 B
HTML
Raw Normal View History

2022-04-09 01:36:05 +02:00
{{ partial "debug" (dict "context" . "caller" "archive.html" )}}
{{ $prev := 3000}}
2022-04-09 21:34:04 +02:00
{{range where site.RegularPages "Type" "in" site.Params.searchSections }}
2022-04-09 01:36:05 +02:00
{{ $date := .Date }}
{{ if gt $prev ($date.Format "2006") }}
<h2>{{ $date.Format "2006" }}</h2>
{{end}}
<div class="frow">
<div class="underline" style="margin-right: 1em;"><a href="{{.Permalink}}">{{ .Title }}</a></div>
<div class="frow" style="margin-right: 1em;">{{- $date.Format "02" }}. {{ if $date.Format "Jan" | i18n }}{{ $date.Format "Jan" | i18n -}}{{- else -}} {{- $date.Format "Jan" -}}{{- end }} {{ $date.Format "2006 15:04" }}</div><br>
</div>
{{ $prev = $date.Format "2006"}}
{{end}}