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 !
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 !