Fix image styling in news and teaser image

This commit is contained in:
2024-02-05 20:54:16 +01:00
parent eb374366a9
commit 6a8ece286f
2 changed files with 9 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
{{ $resource := .Page.Resources.Get $filename -}}
src="{{ $resource.RelPermalink }}"
style="
{{- with .Get "width" -}}width: {{.}}px;{{- end -}}
{{- with .Get "width" -}}max-width: min(90%, {{.}}px);{{- end -}}
"
>
{{ with .Get "href" }}