tpl/tplimpl: Add img loading attribute to figure shortcode (#10927)

This commit is contained in:
InLaw
2023-05-21 21:28:45 +02:00
committed by GitHub
parent e6dc8053bf
commit 2db7ec622f
2 changed files with 4 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
{{- end -}}
{{- with .Get "width" }} width="{{ . }}"{{ end -}}
{{- with .Get "height" }} height="{{ . }}"{{ end -}}
{{- with .Get "loading" }} loading="{{ . }}"{{ end -}}
/><!-- Closing img tag -->
{{- if .Get "link" }}</a>{{ end -}}
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}