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

Priority for static routes

Open Leobaillard opened this issue 5 years ago • 2 comments

Hi!

Thanks for this very useful plugin!

While setting up my static pages, I realized that the default priority for this provider is 0.3. That seemed a bit low to me, especially for instance in the case of a home page.

Would it be possible to leave 0.3 as a default and allow customizing the priority per route in the configuration?

Thanks!

Leobaillard avatar Oct 11 '19 08:10 Leobaillard

Hi @Leobaillard! Yes, that would be a nice feature, to have this configurable. Either via the config and/or service declaration, or via a public method in the provider.. I'm not sure what is the best way yet, but I'm open to a PR with a nice solution. Would you be able to provide a PR?

stefandoorn avatar Oct 11 '19 16:10 stefandoorn

I would indeed. In fact, I've already implemented a working solution in a fork. I'll create a PR from that.

Leobaillard avatar Oct 11 '19 16:10 Leobaillard