Add alt text to the image in the photo/single template

This commit is contained in:
Eryn Wells 2022-11-15 17:21:04 -08:00
parent 19145efa33
commit c0a2dd9f28

View file

@ -14,7 +14,7 @@
{{ if eq (len $photos) 1 }}
{{- $img := index $photos 0 -}}
<figure><img src="{{ $img.RelPermalink }}"></figure>
<figure><img src="{{ $img.RelPermalink }}"{{ with $img.Params.alt }} alt="{{ . }}"{{ end }}></figure>
{{ .Content }}