fix img tooltip (#193)

fixes #192

Reviewed-on: BgLUG/bglug.it#193
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
Paolo Asperti 2024-08-11 18:33:06 +00:00 committed by Paolo Asperti
parent 4931651f29
commit 1dfcfed27a

View File

@ -20,7 +20,7 @@
{{- $captionWidth = .Width -}} {{- $captionWidth = .Width -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- $attributes := merge .Attributes (dict "alt" .Text "src" $src "title" (.Title | transform.HTMLEscape)) -}} {{- $attributes := merge .Attributes (dict "alt" .Text "src" $src "title" .Text) -}}
<img <img
{{- range $k, $v := $attributes -}} {{- range $k, $v := $attributes -}}
{{- if $v -}} {{- if $v -}}