diff options
author | InLaw <marsweb@gmx.de> | 2023-05-21 21:28:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 12:28:45 -0700 |
commit | 2db7ec622fc9d666590dd33a3d48818be9772c2d (patch) | |
tree | ac97372a38a6f24294eda57ca2a7170dea2fdb0e /tpl | |
parent | e6dc8053bfb94063268fa56404ff076208dc6dc2 (diff) |
tpl/tplimpl: Add img loading attribute to figure shortcode (#10927)
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/tplimpl/embedded/templates/shortcodes/figure.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/tplimpl/embedded/templates/shortcodes/figure.html b/tpl/tplimpl/embedded/templates/shortcodes/figure.html index ecabb286e..afe784c19 100644 --- a/tpl/tplimpl/embedded/templates/shortcodes/figure.html +++ b/tpl/tplimpl/embedded/templates/shortcodes/figure.html @@ -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") -}} |