diff options
Diffstat (limited to 'layouts/shortcodes/figure.html')
-rw-r--r-- | layouts/shortcodes/figure.html | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 9dbbfa7..a38264a 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -46,28 +46,15 @@ <figure> <img - class="lazyload {{ $class }}" + {{ with $class }}class="{{ . }}"{{ end }} loading="lazy" - data-srcset='{{ delimit $outputSet ", " }}' + srcset='{{ delimit $outputSet ", " }}' src="{{ $encodedPlaceholder }}" - data-src="{{ (.Resize $mediumRes).RelPermalink }}" width="{{ (.Resize $mediumRes).Width }}" height="{{ (.Resize $mediumRes).Height }}" {{ with $alt }}alt="{{ . }}"{{ end }} /> - <noscript> - <img - {{ with $class }}class="{{ . }}"{{ end }} - loading="lazy" - srcset='{{ delimit $outputSet ", " }}' - src="{{ $encodedPlaceholder }}" - width="{{ (.Resize $mediumRes).Width }}" - height="{{ (.Resize $mediumRes).Height }}" - {{ with $alt }}alt="{{ . }}"{{ end }} - /> - </noscript> - {{ with $caption }} <figcaption>{{ . }}</figcaption> {{ end }} |