Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

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

Started by Vincent Rouleau 7 years ago · 6 replies · 1521 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 Andy Miller, 2 days ago
0 69 2 days ago
General · by Veehem, 3 days ago
0 111 3 days ago
General · by milkboy, 4 days ago
0 113 4 days ago
General · by ian russell, 2 weeks ago
2 204 1 week ago
General · by pamtbaau, 1 month ago
2 462 2 weeks ago