Astro’s glob() loader keys each entry by its file path, so the filename
(minus extension) becomes a stable entry.id. That makes it a perfect anchor
target for a single-page notes stream — no extra slug field needed.
const notes = defineCollection({ loader: glob({ base: './src/content/notes', pattern: '**/*.mdx' }),})