tpl/tplimpl: Use plain text for image render hook alt attribute

Co-authored-by: Heracles <email@heracl.es>
This commit is contained in:
Joe Mooring
2025-01-09 23:36:10 -08:00
committed by Bjørn Erik Pedersen
parent dde9d9d544
commit 8af04745fb
3 changed files with 10 additions and 6 deletions

View File

@@ -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 -}}