A picture note
Pictures can also be imported inline, not just as hero images:
---
import { Image } from 'astro:assets';
import myPhoto from '../assets/test-gallery.jpg';
---
<Image src={myPhoto} alt="A test render" width={800} />
This note exists so the blog index has more than one entry and the gallery-style hero image gets exercised too.
- Notes are just Markdown files in
src/content/blog/ - File name becomes the URL slug (
a-picture-note.md→/blog/a-picture-note) - Set
draft: truein frontmatter to keep a note out of the build