Put images in static/ and reference them from Markdown.

![Description](/sample.svg)

Markdown images automatically receive loading="lazy" when lazy_async_image = true is set in config.toml.

avel Lighthouse scores: 100 for Performance, Accessibility, Best Practices, and SEO

When writing HTML directly, include dimensions to avoid layout shift.

<img src="/sample.svg" width="320" height="120" alt="sample image" loading="lazy">