mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-05 02:29:44 +00:00
✨ Support Hugo Markdown Attributes for Inline Images
This commit is contained in:
7 files changed
+111
-4
No files matched your search
@@ -82,7 +82,12 @@
|
||||
{{- end -}}
|
||||
|
||||
|
||||
<figure>
|
||||
<figure
|
||||
{{- range $k, $v := .Attributes -}}
|
||||
{{- if $v -}}
|
||||
{{- printf " %s=%q" $k ($v | transform.HTMLEscape) | safeHTMLAttr -}}
|
||||
{{- end -}}
|
||||
{{- end -}}>
|
||||
{{- if $isRemote -}}
|
||||
{{- template "RenderImageSimple" (dict "imgObj" "" "src" $urlStr "alt" $altText) -}}
|
||||
{{- else if $resource -}}
|
||||
|
||||
Reference in new issue
Block a user