-
Notifications
You must be signed in to change notification settings - Fork 403
Open
Labels
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
When creating a Document Website Listing & setting listing:image-lazy-loading to true, <img> elements within the listing do not get tagged with the loading="lazy" property.
Steps to reproduce
Create a listing. See the Quarto Guide on Document Listings.
Actual behavior
No loading attribute is added to images in the listing.
Instead we see:
<p class="card-img-top">
<img src="assets/img/xyz.jpg" style="height: 150px;" class="thumbnail-image card-img">
</p>Expected behavior
For the listing YAML configuration below:
---
listing:
type: grid
image-lazy-loading: true
---We should expect html <img> elements on a page containing a listing to have the loading="lazy" property.
e.g.
<p class="card-img-top">
<img loading="lazy" src="assets/img/xyz.jpg" style="height: 150px;" class="thumbnail-image card-img">
</p>Your environment
- OS: MacOS Sonoma 14.6.1
Quarto check output
I ran this on the latest tagged version of quarto (v1.9.17), as well as the tag from when the feature was added to the Changelog (v1.5.31):
Quarto v1.5.31:
Quarto 1.5.31
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.13: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.5.31
Path: {truncated}/.quarto-cli/quarto-1.5.31-macos/bin
[✓] Checking tools....................OK
TinyTeX: v2023.08
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: {truncated}/Library/TinyTeX/bin/universal-darwin
Version: 2023
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.5 (Conda)
Path: /opt/homebrew/Caskroom/miniforge/base/envs/pygis/bin/python
Jupyter: 5.3.1
Kernels: python3, javascript, ir
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.1
Path: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources
LibPaths:
- {truncated}/renv/library/R-4.3/aarch64-apple-darwin20
- {truncated}/Library/Caches/org.R-project.R/R/renv/sandbox/R-4.3/aarch64-apple-darwin20/ac5c2659
knitr: 1.43
rmarkdown: 2.24
[✓] Checking Knitr engine render......OK
Quarto v1.9.17:
Quarto 1.9.17
[✓] Checking environment information...
Quarto cache location: {truncated}/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.8.3: OK
Dart Sass version 1.87.0: OK
Deno version 2.4.5: OK
Typst version 0.14.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.9.17
Path: {truncated}/.quarto-cli/quarto-1.9.17-macos/bin
[✓] Checking tools....................OK
TinyTeX: v2023.08
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: {truncated}//Library/TinyTeX/bin/universal-darwin
Version: 2023
[✓] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Source: MacOS known location
[✓] Checking basic markdown render....OK
[✓] Checking R installation...........OK
Version: 4.3.1
Path: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources
LibPaths:
- {truncated}/renv/library/R-4.3/aarch64-apple-darwin20
- {truncated}/Library/Caches/org.R-project.R/R/renv/sandbox/R-4.3/aarch64-apple-darwin20/ac5c2659
knitr: 1.43
rmarkdown: 2.24
[✓] Checking Knitr engine render......OK
[✓] Checking Python 3 installation....OK
Version: 3.11.5 (Conda)
Path: /opt/homebrew/Caskroom/miniforge/base/envs/pygis/bin/python
Jupyter: 5.3.1
Kernels: python3, javascript, ir
[✓] Checking Jupyter engine render....OK
[✓] Checking Julia installation...