Adding, Modifying and Removing Sitemap Entries
Sitemaps are how internet bots like Google and Bing often discover more pages in your site much faster than having to scrape your entire site and compare old results to new results. Basically, it' just a list of discoverable pages.
By default Wagtail Sitemaps are not enabled, but in less than 150 seconds we can get it installed and running the way we expect it to. And within just a couple more minutes we can completely modify each Wagtail Page Sitemap entry.
In this lesson we're going to:
- Install Sitemaps
- Create a sitemap.xml URL for your website
- Add a custom sitemap entry for a routable page (learn about routables here)
- Add a custom priority to the routable page sitemap entry
- Make the entire Blog List Page disappear from the sitemap.xml URL entirely
The Git Commit
Videos not your thing? Rather just get the code? No problem, here's the link to the entire Sitemaps Git Commit and you can see everything that was added.
Was this helpful to you?
Sharing is caring. Help the community by sharing this article.