6
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/themes/nluug/layouts/partials/show-image-of-person.html

13 lines
601 B
HTML

{{ if .profile_details }}
<div>
{{ if .profile_details.thumbnail }}
{{ $image := replace .profile_details.thumbnail "200x200" "150x150" }}
{{ $alttext := printf "Foto van %s" .profile_details.name }}
{{ if and (.add_link_to_image) (.profile_details.profile_page) }}<a href="{{ .profile_details.profile_page }}">{{ end }}
{{ partial "show-image.html" (dict "context" . "image" $image "alt" $alttext) }}
{{ if and (.add_link_to_image) (.profile_details.profile_page) }}</a>{{ end }}
{{ end }}
</div>
{{ end }}