Partial voor het tonen van een foto van een persoon
This commit is contained in:
parent
762308322b
commit
d1c0b1bac2
19
themes/nluug/layouts/partials/show-image-of-person.html
Normal file
19
themes/nluug/layouts/partials/show-image-of-person.html
Normal 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 }}
|
Reference in a new issue