strapi-plugin-sitemap icon indicating copy to clipboard operation
strapi-plugin-sitemap copied to clipboard

feature request: pretty print option

Open reslear opened this issue 1 year ago • 6 comments
trafficstars

add pretty print option:

https://github.com/ekalinin/sitemap.js/pull/230

reslear avatar Jan 17 '24 18:01 reslear

@reslear Could you further explain how the pretty print option could/should benefit the plugin? We allready have XSL in place for styling of the XML.

boazpoolman avatar Jan 18 '24 08:01 boazpoolman

@reslear Could you further explain how the pretty print option could/should benefit the plugin? We allready have XSL in place for styling of the XML.

about source code ;)

reslear avatar Jan 18 '24 19:01 reslear

Still not sure why that would matter

boazpoolman avatar Jan 18 '24 19:01 boazpoolman

SEO specialist manually in the process of debugging or analyzing, it is more convenient to have a format that is easy to read and understand.

maybe add qs param like sitemap.xml?raw or sitemap.xml?pretty for printing source petrified

reslear avatar Jan 18 '24 19:01 reslear

Allright. I can see the use in that.

It'll most likely become a boolean setting, to keep the sitemap URL clean of excessieve parameters.

Thanks for bringing this up!

boazpoolman avatar Jan 18 '24 19:01 boazpoolman

Sure thing! Thanks for considering it.

reslear avatar Jan 18 '24 19:01 reslear