{
  "$type": "site.standard.document",
  "canonicalUrl": "https://www.simoncox.com/short-articles/2023-02-06-remove-404-file-from-sitemap-xml-in-11ty/",
  "description": "How to remove your 404 file from you mxl sitemap.",
  "path": "/short-articles/2023-02-06-remove-404-file-from-sitemap-xml-in-11ty/",
  "publishedAt": "2023-02-06T18:08:58.086Z",
  "site": "at://did:plc:tki7vwlanxbwrz2er67eaeqa/site.standard.publication/3mp4h4md7zv2y",
  "tags": [
    "Eleventy",
    "SEO"
  ],
  "textContent": "I realised that the sitemap.xml file was listing the 404 page - we really don't want that in there as the search engines don't want it. The 11ty sitemap.njk file had the answer in its frontmatter for any page you don't want in a collection, and that includes the All collection, I added this in the frontmatter of the 404 page:\n\nAnd then any page I want to manually jeep out of the sitemap I can add sitemapIgnore: true to the frontmatter.",
  "title": "Remove 404 file from sitemap.xml in 11ty"
}