Afbeeldingen ook voor teams in grid en maximum breedte
This commit is contained in:
parent
b60f218f68
commit
397b246d2a
|
@ -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 }}
|
||||||
|
|
Reference in a new issue