{
  "id": 17809772,
  "title": "Keeping noindex, the sitemap and the image sitemap in agreement for programmatic pages",
  "url": "https://urgent.news/2026/11/02/keeping-noindex-the-sitemap-and-the-image-sitemap-in-agreement-for",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-02T14:48:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/picraftai/keeping-noindex-the-sitemap-and-the-image-sitemap-in-agreement-for-programmatic-pages-57o1"
  },
  "original_language": "en",
  "account": "Google's documentation for sitemaps and the robots meta tag both advise including URLs in sitemaps that you want to appear in Google's search results, while the noindex rule directs search engines not to display the page in search results. When pages are generated from a single array, the sitemap.xml and image-sitemap.xml files can become out of sync, especially for pages with thin content.\n\nIn the case of the landscape design website Landscapecraft.ai, there are 40 design-style pages generated from one TypeScript array. If a style lacks a long-form MDX write-up, it is treated as thin and assigned noindex, follow. As a result, such pages are absent from both sitemap.xml and image-sitemap.xml files.\n\nThe code maintains consistency between the three files (sitemap.ts, image-sitemap.xml/route.ts, and app/styles/[slug]/page.tsx) by relying on a single predicate. When one of these files detects a page without a long-form MDX, it flags it for exclusion from all three sources.\n\nHowever, these three files are not perfectly aligned. For instance, idea pages with fewer than 3 posts are still indexable and included in sitemap.xml. Additionally, the image sitemap does not list category pages at all, further causing discrepancies. While the filter only covers one page type, it does not account for variations in page type, leading to inconsistencies that require monitoring and adjustment.",
  "summary": "Google's documentation for sitemaps says to \"include the URLs in your sitemap that you want to see in Google's search results\". Its documentation for the robots meta tag says the noindex rule means: \"Do not show this page, media, or resource in search results.\" A URL that carries both is giving two answers, and when the pages are generated from one array it is easy for them to drift apart without…",
  "key_points": [
    "Sitemap and image sitemap must agree on URLs",
    "Noindex tags exclude pages from search results",
    "Discrepancies arise from thin content pages"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}