6
0
Fork 0

Partial voor het tonen van een foto van een persoon

This commit is contained in:
Michael Boelen 2023-05-22 21:04:40 +02:00
parent 762308322b
commit d1c0b1bac2

View file

@ -0,0 +1,19 @@
{{ $size_in_pixels := 150 }}
{{ if .profile_details }}
<div>
{{ if .profile_details.thumbnail }}
<figure>
{{ if .profile_details.profile_page }}
<a href="{{ .profile_details.profile_page }}"><img src="{{ .profile_details.thumbnail }}" alt="Foto van {{ .profile_details.name }}" height="{{ $size_in_pixels }}" width="{{ $size_in_pixels }}"></a>
{{ else }}
<img src="{{ .profile_details.thumbnail }}" alt="Foto van {{ .profile_details.name }}" height="{{ $size_in_pixels }}" width="{{ $size_in_pixels }}">
{{ end }}
{{ if not .hide_figcaption }}
<figcaption>
<small><strong>{{ .profile_details.name }}</strong></small>
</figcaption>
{{ end }}
</figure>
{{ end }}
</div>
{{ end }}