6
0
Fork 0

Optimaliseren tonen van afbeelding gerelateerd aan een persoon

This commit is contained in:
Michael Boelen 2023-06-18 13:37:23 +02:00
parent fe835f825f
commit 81f8199f78

View file

@ -5,7 +5,10 @@
{{ with (index .Site.Data.personen (substr $.File.LogicalName 0 -3)) }} {{ with (index .Site.Data.personen (substr $.File.LogicalName 0 -3)) }}
{{ $personid := .id }} {{ $personid := .id }}
{{ if .thumbnail }}<img src="{{ .thumbnail }}" alt="Foto van {{ .name }}">{{ end }} {{ if .thumbnail }}
{{ $alttext := printf "Foto van %s" .name }}
{{ partial "show-image.html" (dict "context" . "image" .thumbnail "alt" $alttext) }}
{{ end }}
{{ $text }} {{ $text }}
{{ range where $.Site.RegularPages.ByTitle "Section" "organisatie" }} {{ range where $.Site.RegularPages.ByTitle "Section" "organisatie" }}