DEV Community

Discussion on: How to render your sitemap.xml file in your Svelte/Sapper blog

khrome83 profile image
Zane Milakovic

I didn’t have to fetch the sitemap.xml as long as you have a anchor tag linking to it somewhere. Mine is in my footer. It’s pretty common practice to do this so others know you have a RSS feed.

I did something similar for my site

One thing the file based approach does not solve is if you use any of the dynamic routing, for example blog slugs.

So you may have to build that list separate and then manually call add those separate as you expand your site.

Really great write up though!

yafkari profile image
Younes Author

You taught me something, thank you 😄 !

PS: Your website looks very nice !