mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
tpl/tplimpl: Use plain text for image render hook alt attribute
Co-authored-by: Heracles <email@heracl.es>
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
dde9d9d544
commit
8af04745fb
@@ -12,7 +12,7 @@
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
<img src="{{ $src }}" alt="{{ .Text }}"
|
||||
<img src="{{ $src }}" alt="{{ .PlainText }}"
|
||||
{{- with .Title }} title="{{ . }}" {{- end -}}
|
||||
{{- range $k, $v := .Attributes -}}
|
||||
{{- if $v -}}
|
||||
|
Reference in New Issue
Block a user