Sitemaps for Blogging
Answered
Livan posted this in #help-forum
LivanOP
I'm using a headless CMS and I want to make sure my blog posts are indexing on google
I'm researching how to implement this... I was looking at semrush.com and their root sitemap points to this
-> https://es.semrush.com/blog/sitemap/ , which returns the sitemap for every blog post they make
I want to do something similar, any suggestions?
I'm researching how to implement this... I was looking at semrush.com and their root sitemap points to this
-> https://es.semrush.com/blog/sitemap/ , which returns the sitemap for every blog post they make
I want to do something similar, any suggestions?
Answered by American Chinchilla
Check out the sitemap docs:
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap#generating-a-sitemap-using-code-js-ts
You can generate the sitemap programmatically, probably just fetch a list of all posts from your cms and do a map on that
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap#generating-a-sitemap-using-code-js-ts
You can generate the sitemap programmatically, probably just fetch a list of all posts from your cms and do a map on that
1 Reply
American Chinchilla
Check out the sitemap docs:
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap#generating-a-sitemap-using-code-js-ts
You can generate the sitemap programmatically, probably just fetch a list of all posts from your cms and do a map on that
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap#generating-a-sitemap-using-code-js-ts
You can generate the sitemap programmatically, probably just fetch a list of all posts from your cms and do a map on that
Answer