2024-01-13 21:51:08 +00:00
|
|
|
{{ 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 }}
|
2024-12-18 10:01:52 +00:00
|
|
|
{{- if eq (len $futureMeldungen) 0 }}
|
|
|
|
<p>Aktuell sind keine Turniermeldungen bekannt. Bald kommt hier wieder mehr...</p>
|
|
|
|
{{ else }}
|
2024-02-13 18:07:27 +00:00
|
|
|
<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>
|
2024-01-13 21:51:08 +00:00
|
|
|
{{ end }}
|
2024-02-13 18:07:27 +00:00
|
|
|
</div>
|
2024-01-13 21:51:08 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2024-12-18 10:01:52 +00:00
|
|
|
{{ end -}}
|
2024-01-13 21:51:08 +00:00
|
|
|
{{ .Content }}
|
|
|
|
{{ partial "totop" }}
|
|
|
|
{{ end }}
|