small fixes

This commit is contained in:
teldra 2022-06-12 15:12:58 +02:00
parent d341769117
commit 514ba09c93
6 changed files with 31 additions and 16 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -48,3 +48,4 @@ header_heigth = "460"
[foundations] [foundations]
jusos = "https://jusos.de/" jusos = "https://jusos.de/"
rote_hilfe = "https://www.rote-hilfe.de/"

View File

@ -6,7 +6,7 @@ when: "Montag, 04.04.2022, 23.23 Uhr"
categories: ["Pressemitteilung"] categories: ["Pressemitteilung"]
events: ["Konzert"] events: ["Konzert"]
price: "free" price: "free"
foundations: ["rote_hilfe"] foundations: ["rote_hilfe", "werbung"]
covid: "Keine Masken mehr!" covid: "Keine Masken mehr!"
--- ---
Endlich wieder nach langer Covidauszeit sind die Kitten von Katzengejammer wieder am Start. Sie werden euch einen unvergesslichen Abend voller Katzengejammer bieten. Endlich wieder nach langer Covidauszeit sind die Kitten von Katzengejammer wieder am Start. Sie werden euch einen unvergesslichen Abend voller Katzengejammer bieten.

View File

@ -15,17 +15,31 @@ article {
font-size: 60%; font-size: 60%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; align-items: center;
margin-top: 1rem; margin-top: 1rem;
.foundations { .bold {
font-weight: bold;
margin-right: .4em;
}
.foundations_items {
display: flex; display: flex;
margin-bottom: 1em; margin-bottom: 1em;
img {
margin-right: .4rem;
max-height: 4rem;
}
} }
.mod_times, .foundations { .mod_times {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.mod_times_item:first-child, { .mod_times_item {
margin-bottom: .4em; display: flex;
} }
} }
} }
@media (min-width: 640px) {
.article_footer {
align-items: flex-start;
}
}

View File

@ -61,8 +61,8 @@
{{ if and (eq .Kind "page") (or (eq .Section "news") (eq .Section "events") (eq .Section "about")) }} {{ if and (eq .Kind "page") (or (eq .Section "news") (eq .Section "events") (eq .Section "about")) }}
<div class="article_footer"> <div class="article_footer">
{{ with .Params.foundations }} {{ with .Params.foundations }}
<b>Träger der Veranstaltung:</b> <div class="bold">Träger der Veranstaltung:</div>
<div class="foundations"> <div class="foundations_items">
{{ range . }} {{ range . }}
{{ $l := . }} {{ $l := . }}
{{ $url := "" }} {{ $url := "" }}
@ -88,18 +88,18 @@
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}
<div class="mod_times"> <div class="mod_times">
<div class="mod_times_item"> <div class="mod_times_item">
<b>{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}</b> <div class="bold">{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}: </div>
{{ .Date | time.Format ":date_full" }} <div>{{ .Date | time.Format ":date_full" }}</div>
</div> </div>
{{ if ne .Date .Lastmod }} {{ if ne .Date .Lastmod }}
<div class="mod_times_item"> <div class="mod_times_item">
<b>{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}</b> <div class="bold">{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}: </div>
{{ .Lastmod | time.Format ":date_full" }} <div>{{ .Lastmod | time.Format ":date_full" }}</div>
</div> </div>
{{ end }} {{ end }}
</div> </div>
</div> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}