mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
tpl/tplimpl: Honor markdown attributes in embedded image render hook
Fixes #12203
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
b1de03f398
commit
632ad74fc5
@@ -5,7 +5,7 @@
|
||||
{{- $src = .RelPermalink -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $attributes := dict "alt" .Text "src" $src "title" .Title -}}
|
||||
{{- $attributes := merge .Attributes (dict "alt" .Text "src" $src "title" .Title) -}}
|
||||
<img
|
||||
{{- range $k, $v := $attributes -}}
|
||||
{{- if $v -}}
|
||||
|
Reference in New Issue
Block a user