Sitemap improvements

The first code I made for a sitemap generator site and has additional information, the second code is generated by BSS.
Informing the priority, as well as the last modification made to the search engines helps a lot in the indexing of the pages, making these changes would be of great help for us who use the BSS to create and update our sites.

Sitemap Generator

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!--  created with Free Online Sitemap Generator www.xml-sitemaps.com  -->
<url>
<loc>https://andresomeluz.com.br/dj-niteroi/niteroi.html</loc>
<lastmod>2021-12-29T22:19:23+00:00</lastmod>
<priority>1.00</priority>
</url>

BSS Sitemap

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://andresomeluz.com.br/dj-araruama/araruama.html</loc>
</url>
1 Like

I noticed this as well. I export a sitemap using BSS. Then I add the lastmod manually, and the priority manually. Any new pages, I’ll create a manual entry for.

I know it would be nice for BSS to generate lastmod, but generally you will export the whole project before uploading to your webserver, meaning the lastmod will always be the same, and even if you do export only a single page and a sitemap, the NEW sitemap will be wrong, so you’d be manually adding an entry to your original sitemap anyway.

I can definitely see a use for manually setting sitemap priority in BSS though.

+1 for me. I recently had to manually change a sitemap → adding priority, etc.