8000 shortcodes: use async and lazy for images. by heitorPB · Pull Request #59 · pawroman/zola-theme-terminimal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

shortcodes: use async and lazy for images. #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

heitorPB
Copy link
Contributor
@heitorPB heitorPB commented Feb 6, 2024

Zola v0.18 added an option to set all images with decoding=async and load=lazy, but this only applies to <img> tags generated from Markdown ![]() syntax. This patch adds these attributes by default to figure and image macros.

Zola v0.18 added an option to set all images with `decoding=async` and
`load=lazy`, but this only applies to `<img>` tags generated from
Markdown `![]()` syntax. This patch adds these attributes by default to
`figure` and `image` macros.
@pawroman pawroman merged commit 0ced778 into pawroman:master Feb 13, 2024
@pawroman
Copy link
Owner

Thanks!

@heitorPB heitorPB deleted the async-lazy-images branch April 3, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0