Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Is there a way to add custom attributes to an image using {{ image.html }}?

Started by Vincent Rouleau 7 years ago · 6 replies · 1983 views
6 years ago

Blockquote
Although, you can manually add your HTML image code <img href="..." loading="lazy" > in the markdown/twig files.

Oh, that is what I've been looking for! But how do I correctly reference the image file from within my markdown if I use inline HTML?

Suggested topics

Topic Participants Replies Views Activity
General · by Sergi, 2 days ago
1 74 2 days ago
General · by themetman, 5 days ago
2 95 5 days ago
General · by Hanns Mattes, 2 weeks ago
0 148 2 weeks ago
General · by Karmalakas, 2 weeks ago
2 221 2 weeks ago
General · by Hanns Mattes, 4 weeks ago
0 282 4 weeks ago