Astro notes. Checked October 7, 2026 on Astro 7.0.5 with @astrojs/sitemap 3.7.3. Replace every placeholder.
- robots: use public/robots.txt OR src/pages/robots.txt.ts. Never both.
- llms.txt: src/pages/llms.txt.ts builds the file once at build time from your content collection. Do not also keep a hand-written public/llms.txt.
- JsonLd.astro escapes "<" as \u003c, so a closing script tag inside any value cannot end the block early.
- Sitemap lastmod: astro.config.sitemap.mjs reads updatedDate or publishDate from each post, for .md and .mdx.
- Check it worked: npx astro build, then look for /llms.txt and /robots.txt under static routes in the build log.
