bunteshaus.de/themes/buha/layouts/_default/archive.html

24 lines
847 B
HTML
Raw Normal View History

2021-10-23 22:20:01 +02:00
{{ define "title" }}
{{ $name := "archive" }}
{{ if lower $name | i18n }}
{{ $name = lower $name | i18n }}
{{ end }}
{{ $name }}
{{ end }}
{{ define "main" }}
2022-04-02 23:26:56 +02:00
<article>
2021-10-23 22:20:01 +02:00
{{ $prev := 3000}}
{{range where .Site.RegularPages "Type" "in" site.Params.mainSections }}
{{ $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}}
2022-04-02 23:26:56 +02:00
</article>
2021-10-23 22:20:01 +02:00
{{ end }}