Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

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

Started by Vincent Rouleau 7 years ago · 6 replies · 1814 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 lynbor, 1 month ago
5 539 5 days ago
General · by Andy Miller, 2 weeks ago
0 227 2 weeks ago
General · by lynbor, 4 weeks ago
7 657 3 weeks ago
General · by Harry, 3 weeks ago
0 233 3 weeks ago
General · by Old Man Umby, 1 month ago
2 367 1 month ago