Using images in Markdown

Store shared images inside the public/assests/ directory. Eleventy copies everything from that folder to the site root during the build, so the files are available at / URLs.

Example asset from public

When referencing the file, use the path relative to the generated site root. In this case, /assests/example.jpg points to public/assests/example.jpg.

Need a quick reminder later? Tag this page with #pic so it shows up when filtering for image examples.

Hashtags: #pic