hugo-page-test/themes/tsc_vfl/layouts/_default/turniermeldungen.html

25 lines
922 B
HTML
Raw Permalink Normal View History

{{ define "main" }}
<a name="top">
<h1>{{ .Title }}</h1>
</a>
{{ $meldungen := where .Site.RegularPages "Section" "==" "turniermeldung" }}
2024-02-13 18:07:27 +00:00
{{- $futureMeldungen := slice -}}
{{- range $meldungen -}}
{{- if ge (time.AsTime .Params.dateCompetition) (now.AddDate 0 0 -1) }}
{{- $futureMeldungen = $futureMeldungen | append . }}
{{- end }}
{{- end }}
<div class="turniermeldungen-group-list">
{{ range ( $futureMeldungen.GroupByParamDate "dateCompetition" "02.01.2006" "asc") }}
<div class="day">
<div class="date">{{ .Key }}</div>
{{ range .Pages }}
<div class="participation"><a href="{{ .RelPermalink }}">{{ .Params.ort }} ({{ .Params.partner }} / {{ .Params.partnerin }})</a></div>
{{ end }}
2024-02-13 18:07:27 +00:00
</div>
{{ end }}
</div>
{{ .Content }}
{{ partial "totop" }}
{{ end }}