diff --git a/layouts/partials/_relearn/imageAttributes.gotmpl b/layouts/partials/_relearn/imageAttributes.gotmpl index c51ce7bb96..5081ddaf60 100644 --- a/layouts/partials/_relearn/imageAttributes.gotmpl +++ b/layouts/partials/_relearn/imageAttributes.gotmpl @@ -71,9 +71,9 @@ {{- $attributes = merge $attributes (dict "src" $src) }} {{- else }} {{- $attributes = merge $attributes (dict "src" .url) }} + {{- if $effects.lazy }}{{ $attributes = merge $attributes (dict "loading" "lazy") }}{{ end }} {{- end }} {{- if $attributes.class }}{{ $classes = $classes | append (split $attributes.class " ") }}{{ end }} {{- $attributes = merge $attributes (dict "class" (delimit $classes " ")) }} {{- $attributes = merge $attributes (dict "style" (printf " height: %s; width: %s;%s" $height $width (index $attributes "style" | default ""))) }} -{{- if $effects.lazy }}{{ $attributes = merge $attributes (dict "loading" "lazy") }}{{ end }} {{- return $attributes }} \ No newline at end of file diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index 14a9d95200..42223e7f47 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.3.2+a9cc5c74d60c6f4467a9e710ce73eca13235eb12 \ No newline at end of file +7.3.2+cf1fb446dd456655648d0ec2ccc8ae88c56e98d7 \ No newline at end of file