Afbeeldingen ook voor teams in grid en maximum breedte

This commit is contained in:
Michael Boelen 2023-05-24 10:20:41 +02:00
parent b60f218f68
commit 397b246d2a

View file

@ -9,26 +9,18 @@
<h2>Team</h2> <h2>Team</h2>
<div class="grid-team-members"> <div class="grid-team-members-small-photos">
{{ range $key,$val := .Params.team_members }} {{ range $key,$val := .Params.team_members }}
{{ with (index $.Site.Data.personen $val) }} {{ with (index $.Site.Data.personen $val) }}
<div> <div>
{{ if .thumbnail }} {{ if .thumbnail }}
<figure> {{ $image := replace .thumbnail "200x200" "150x150" }}
{{ if .profile_page }} {{ $alttext := printf "Foto van %s" .name }}
<a href="{{ .profile_page }}"><img src="{{ .thumbnail }}" alt="Foto van {{ .name }}"></a> {{ partial "show-image.html" (dict "context" . "image" $image "alt" $alttext "figcaption" .name "link" .profile_page) }}
{{ else }} {{ end }}
<img src="{{ .thumbnail }}" alt="Foto van {{ .name }}"> </div>
{{ end }}
<figcaption>
<strong>{{ .name }}</strong>
</figcaption>
</figure>
{{ end }}
</div>
{{ end }}
{{ end }} {{ end }}
{{ end }}
</div> </div>
{{ end }} {{ end }}