<?xml version="1.0" encoding="UTF-8"?>
<!--
  BookInkHub Sitemap Index
  ========================
  This file is the entry point for all search engine crawlers.
  It references the live sitemap served dynamically by PocketBase,
  which auto-includes every published article and every author profile page.

  Architecture:
    /sitemap.xml          → this index file (static, served by Vite)
    /api/sitemap.xml      → full sitemap (dynamic, served by PocketBase hook)

  IMPORTANT — robots.txt:
    robots.txt contains "Allow: /api/sitemap.xml" above "Disallow: /api/" so
    that Googlebot can follow this reference. Do not remove that Allow rule.

  When to update this file:
    - If the sitemap is split into multiple files (> 50,000 URLs),
      add additional <sitemap> entries pointing to each child sitemap.
    - Update <lastmod> whenever the hook (sitemap.pb.js) is meaningfully changed.

  Pages intentionally excluded from the sitemap:
    /signup               auth page — no search intent (/login is included)
    /dashboard            protected route — requires authentication
    /admin/*              admin-only routes — protected
    /checkout/success     transactional thank-you page
    /articles/new         admin editor — not a public page
    /articles/edit/*      admin editor — not a public page
    /api/*                internal API endpoints (except /api/sitemap.xml)

  Pages dynamically included by the PocketBase hook:
    /                     homepage
    /books                full library
    /about                about page
    /pricing              pricing page
    /members              Pro community
    /articles             articles listing
    /articles/:slug       each published article (auto-added on publish)
    /authors/:id          each author profile (auto-added when books are listed)
    /login                sign-in page
    /contact              contact page
    /terms                terms page
-->
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.bookinkhub.com/api/sitemap.xml</loc>
    <lastmod>2026-10-06</lastmod>
  </sitemap>
</sitemapindex>
