Sitemap does not include any user-generated content
Hi,
As mentioned on IRC a few days ago, I noticed that google is not indexing almost any pages from my gancio instance. I know nothing about SEO, but one of the first things they tell you is to check the sitemap, which I realised is almost empty:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>https://calendar.clonmel.town/about</loc>
</url>
<url>
<loc>https://calendar.clonmel.town/Authorize</loc>
</url>
<url>
<loc>https://calendar.clonmel.town/Login</loc>
</url>
<url>
<loc>https://calendar.clonmel.town/my_events</loc>
</url>
<url>
<loc>https://calendar.clonmel.town/Register</loc>
</url>
<url>
<loc>https://calendar.clonmel.town/search</loc>
</url>
<url>
<loc>https://calendar.clonmel.town/embed/list</loc>
</url>
<url>
<loc>https://calendar.clonmel.town/</loc>
</url>
</urlset>
I checked other instances from https://gancio.org/instances with similar results.
According to the nuxt/sitemap documentation, "dynamic routes are ignored by the sitemap module", so it is not useful as currently used. In fact, it might be hurting indexing as it is telling search engines there is nothing else to index except for those static pages..
According to NuxtSEO's article, you need to create an API endpoint that will collect all the page URLs, which is then ingested by the sitemap module to generate the final site map. An alternative is to just generate the site map from that new endpoint.