Optimaliseren tonen van afbeelding gerelateerd aan een persoon
This commit is contained in:
parent
fe835f825f
commit
81f8199f78
|
@ -5,7 +5,10 @@
|
|||
|
||||
{{ with (index .Site.Data.personen (substr $.File.LogicalName 0 -3)) }}
|
||||
{{ $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 }}
|
||||
|
||||
{{ range where $.Site.RegularPages.ByTitle "Section" "organisatie" }}
|
||||
|
|
Reference in a new issue