Create basic structure to show turniermeldungen

This commit is contained in:
Christian Wolf 2024-01-14 11:54:58 +01:00
parent c63dac6e7f
commit a793d2da87
2 changed files with 42 additions and 0 deletions

View File

@ -924,6 +924,25 @@ table.time {
} }
} }
.turnier-details {
.title {
font-weight: 600;
}
.turnier {
font-weight: bold;
.nummer {
font-weight: normal;
font-style: italic;
}
}
.verein {
margin: 20px 0 0;
}
.contact {
font-style: italic;
}
}
.iframe-generic { .iframe-generic {
display: block; display: block;
width: 100%; width: 100%;

View File

@ -0,0 +1,23 @@
{{ define "main" }}
{{ $datum := time.AsTime .Params.dateCompetition }}
<a name="top">
<h1>{{ .Params.ort }} am {{ $datum.Format "02.01.2006" }}</h1>
</a>
<h2>{{ .Params.partner }} / {{ .Params.partnerin }}</h2>
<div class="turnier-details">
{{ with .Params.titel }}
<div class="title">{{ . }}</div>
{{ end }}
<div class="turnier">
{{ .Params.gruppe }} {{ .Params.klasse }} {{ .Params.sektion }}
{{ with .Params.nummer }}
<span class="nummer">({{ . }})</span>
{{ end }}
</div>
<div class="verein">{{ .Params.verein }}</div>
<div class="ort">{{ .Params.ort }}</div>
<div class="contact">Telefon am Turniertag: {{ .Params.telefon }}</div>
</div>
{{ .Content }}
{{ partial "totop" }}
{{ end }}