Skip to content
loading...

re: How to render your sitemap.xml file in your Svelte/Sapper blog VIEW POST

FULL DISCUSSION
 

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 khrome.dev

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!

 

You taught me something, thank you 😄 !

PS: Your website looks very nice !

code of conduct - report abuse