Tonen namen indien er geen foto is opgegeven

This commit is contained in:
Michael Boelen 2024-05-24 12:59:32 +00:00
parent 6fe266e629
commit 59c0139a72

View file

@ -58,6 +58,8 @@
{{ $image := replace .thumbnail "200x200" "150x150" }}
{{ $alttext := printf "Foto van %s" .name }}
{{ partial "show-image.html" (dict "context" . "image" $image "alt" $alttext "figcaption" .name "link" .profile_page) }}
{{ else }}
<span>{{ .name }}</span>
{{ end }}
</div>
{{ end }}