Update data from current web site state

This commit is contained in:
2023-12-15 13:23:25 +01:00
parent 094e2b4a1a
commit 2eccc0dbaa
35 changed files with 250 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
---
title: ""
date: 2023-11-11T16:17:00+00:00
summary: |-
Hier kommt die Zusammenfassung hin
draft: false
# Die nächste Zeile anpassen, wenn das Thumbnail eingerichtet ist
# image: thumbnail.jpg
---
Hier kommt der Text
<!-- Das ist ein einzelnes Bild: -->
<!-- {{< tsc/news/inline-float src="pokal.jpg" alt="Siegerpokal" width="800" height="801" >}} -->

View File

@@ -410,8 +410,15 @@ h1 {
}
}
.tsc-image {
margin: 0 auto;
width: fit-content;
}
.tsc-gallery {
display: grid;
align-items: center;
justify-items: center;
&.cols-2 {
grid-template-columns: 1fr 1fr;
@@ -424,7 +431,7 @@ h1 {
}
.tsc-gallery-img {
margin: none;
margin: 20px;
}
}

View File

@@ -1,12 +1,15 @@
<figure>
<figure class="tsc-image">
{{ with .Get "href" }}
<a href="{{ . }}">
{{ end }}
<img
{{- with .Get "alt" }}alt="{{ . }}"{{ end }}
{{ with .Get "alt" }}alt="{{ . }}"{{ end }}
{{- $filename := .Get "src" }}
{{ $resource := .Page.Resources.Get $filename -}}
src="{{ $resource.RelPermalink }}"
style="
{{- with .Get "width" -}}max-width: {{.}}px;{{- end -}}
"
>
{{ with .Get "href" }}
</a>