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

19 lines
805 B
HTML
Raw Normal View History

2022-04-11 15:45:49 +02:00
{{ if ne .context.Content "" }}
{{ partial "snippets/content" (dict "content" .context.Content) }}
2022-04-12 08:05:51 +02:00
2022-04-11 15:45:49 +02:00
{{ end }}
<section>
2022-04-10 00:53:31 +02:00
{{ $prev := 3000}}
{{range where site.RegularPages "Type" "in" site.Params.searchSections }}
{{ $date := .Date }}
{{ if gt $prev ($date.Format "2006") }}
2022-04-12 08:05:51 +02:00
<h2 style="margin-bottom: 0;">{{ $date.Format "2006" }}</h2>
2022-04-10 00:53:31 +02:00
{{end}}
2022-04-12 08:05:51 +02:00
<div class="frow" style="margin-bottom: .2rem; margin-left: .2rem;">
2022-04-11 15:45:49 +02:00
<div class="underline"><a href="{{.Permalink}}">{{ .Title }}</a></div>
2022-04-12 08:05:51 +02:00
<div style="margin-left: .2rem;">{{- $date.Format "02" }}. {{ if $date.Format "Jan" | i18n }}{{ $date.Format "Jan" | i18n -}}{{- else -}} {{- $date.Format "Jan" -}}{{- end }} {{ $date.Format "2006" }}</div>
</div>
2022-04-10 00:53:31 +02:00
{{ $prev = $date.Format "2006"}}
{{end}}
2022-04-11 15:45:49 +02:00
</section>