Adding a sitemap
Published on June 15, 2025
Sitemap successfully added. This was a lot less drama than the RSS feed:
-
I added the layout: sitemap.xml.njk which included some basic code to retreive every page in any 11ty “collection” and then output its attirbutes into the sitemap.
-
I added site data at in a site.json file. The only thing in there right now is the root URL. Apparently, the sitemap craves JSON data.
And it works! Check it here: sitemap.xml