forked from laurens/fediversity_website
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)) }}
|
{{ 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" }}
|
||||||
|
|
Reference in a new issue