Skip to content

SEO: Add sitemap.xml and robots.txt #27

@AbdalrahmanWael

Description

@AbdalrahmanWael

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions