Add alt text to the image in the photo/single template
This commit is contained in:
parent
19145efa33
commit
c0a2dd9f28
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue