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]
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"]
events: ["Konzert"]
price: "free"
foundations: ["rote_hilfe"]
foundations: ["rote_hilfe", "werbung"]
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.

View File

@ -15,17 +15,31 @@ article {
font-size: 60%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 1rem;
.foundations {
.bold {
font-weight: bold;
margin-right: .4em;
}
.foundations_items {
display: flex;
margin-bottom: 1em;
img {
margin-right: .4rem;
max-height: 4rem;
}
}
.mod_times, .foundations {
.mod_times {
display: flex;
flex-direction: column;
.mod_times_item:first-child, {
margin-bottom: .4em;
.mod_times_item {
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")) }}
<div class="article_footer">
{{ with .Params.foundations }}
<b>Träger der Veranstaltung:</b>
<div class="foundations">
<div class="bold">Träger der Veranstaltung:</div>
<div class="foundations_items">
{{ range . }}
{{ $l := . }}
{{ $url := "" }}
@ -88,18 +88,18 @@
{{ end }}
</div>
{{ end }}
<div class="mod_times">
<div class="mod_times_item">
<b>{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}</b>
{{ .Date | time.Format ":date_full" }}
</div>
<div class="mod_times">
<div class="mod_times_item">
<div class="bold">{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}: </div>
<div>{{ .Date | time.Format ":date_full" }}</div>
</div>
{{ if ne .Date .Lastmod }}
<div class="mod_times_item">
<b>{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}</b>
{{ .Lastmod | time.Format ":date_full" }}
<div class="bold">{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}: </div>
<div>{{ .Lastmod | time.Format ":date_full" }}</div>
</div>
{{ end }}
</div>
</div>
</div>
{{ end }}
{{ end }}