fix img tooltip (#193)
fixes #192 Reviewed-on: #193 Co-authored-by: paspo <paolo@asperti.com> Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
parent
4931651f29
commit
1dfcfed27a
@ -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 -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user