Create basic structure for list of Turniermeldungen

This commit is contained in:
Christian Wolf 2024-01-13 22:51:08 +01:00
parent 5b8cb1031e
commit 644156e1d8
4 changed files with 66 additions and 1 deletions

View File

@ -1,7 +1,8 @@
---
title: "Turniermeldungen"
date: 2023-01-20T16:27:40+01:00
draft: true
layout: turniermeldungen
draft: false
# type: home
menu:
main:
@ -9,3 +10,17 @@ menu:
parent: aktuell
---
## Linkliste
- {{< tsc/link-external url="https://www.tbw.de/" >}}TBW{{< /tsc/link-external >}}
- {{< tsc/link-external url="http://www.tanzsport.de/" >}}Deutscher Tanzsportverband e.V. (DTV){{< /tsc/link-external >}}
- {{< tsc/link-external url="http://appsrv.tanzsport.de/dtv-webdbs/turnier/suche.spf" >}}Turnierdatenbank des DTV{{< /tsc/link-external >}}
- {{< tsc/link-external url="https://ev.tanzsport-portal.de/" >}}für Aktive: ESV-Anmeldung{{< /tsc/link-external >}}
- {{< tsc/link-external url="http://de.dancesportinfo.net/SearchCouples.aspx" >}}de.dancesportinfo.net{{< /tsc/link-external >}}

View File

@ -0,0 +1,12 @@
---
dateCompetition: 2024-01-13
partner: Westerhoff, Frank
partnerin: Westerhff, Anja Dr.
ort: GGC Clubheim, Wuppertal
telefon: 0202 712476
gruppe: Mas III
klasse: S
sektion: Std
titel: GGC Seniorentag Standard
nummer: 113904
---

View File

@ -905,6 +905,25 @@ table.time {
}
}
.turniermeldung-list {
.turniermeldung {
display: flex;
.date {
font-weight: bold;
flex: auto 0 0;
}
.ort {
margin: 0 0 0 10px;
flex: auto 1 0;
a {
width: 100%;
height: 100%;
}
}
}
}
.iframe-generic {
display: block;
width: 100%;

View File

@ -0,0 +1,19 @@
{{ define "main" }}
<a name="top">
<h1>{{ .Title }}</h1>
</a>
{{ $meldungen := where .Site.RegularPages "Section" "==" "turniermeldung" }}
<div class="turniermeldung-list">
{{ range (sort $meldungen ".Params.dateCompetition" "asc") }}
{{ $date := time.AsTime .Params.dateCompetition }}
{{ if ge $date (now.AddDate 0 0 -1) }}
<div class="turniermeldung">
<div class="date">{{ $date.Format "02.01.2006" }}</div>
<div class="ort"><a href="{{ .RelPermalink }}">{{ .Params.ort }}</a></div>
</div>
{{ end }}
{{ end }}
</div>
{{ .Content }}
{{ partial "totop" }}
{{ end }}