fix img tooltip #193

Merged
paspo merged 1 commits from paspo/bglug.it:fix-tooltip into main 2024-08-11 18:33:09 +00:00

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