Summary
Add sitemap.xml and robots.txt to the website so search engines can discover and index pages more reliably.
Current state
The repo currently does not generate a sitemap or serve a robots file.
This Eleventy setup already defines the site structure and blog collections, but there is no sitemap generation and no robots.txt in the project.
Why this matters
- Improves crawlability and indexing
- Helps search engines discover blog posts and main pages
- Establishes basic SEO hygiene for a public content site
Proposed change
- Generate
/sitemap.xml during the Eleventy build
- Add
/robots.txt
- Include the main public pages and blog posts in the sitemap
- Reference the sitemap from
robots.txt
- Keep URLs based on the production site URL
Acceptance criteria
/sitemap.xml is generated in the built site
/robots.txt is present in the built site
robots.txt references the sitemap URL
- Main public pages are included in the sitemap
- Blog posts are included in the sitemap
- Sitemap URLs use the production domain
Implementation notes
- This can be implemented with an Eleventy sitemap plugin or a custom generated template
- The existing site configuration in
.eleventy.js already provides the right foundation for generating sitemap entries from the site’s pages and blog content
Summary
Add
sitemap.xmlandrobots.txtto the website so search engines can discover and index pages more reliably.Current state
The repo currently does not generate a sitemap or serve a robots file.
This Eleventy setup already defines the site structure and blog collections, but there is no sitemap generation and no
robots.txtin the project.Why this matters
Proposed change
/sitemap.xmlduring the Eleventy build/robots.txtrobots.txtAcceptance criteria
/sitemap.xmlis generated in the built site/robots.txtis present in the built siterobots.txtreferences the sitemap URLImplementation notes
.eleventy.jsalready provides the right foundation for generating sitemap entries from the site’s pages and blog content