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

25 lines
922 B
HTML

{{ define "main" }}
<a name="top">
<h1>{{ .Title }}</h1>
</a>
{{ $meldungen := where .Site.RegularPages "Section" "==" "turniermeldung" }}
{{- $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 }}
</div>
{{ end }}
</div>
{{ .Content }}
{{ partial "totop" }}
{{ end }}