ayushn21 / bridgetown-sitemap

A Bridgetown plugin to generate a sitemap.xml
MIT License
15 stars 4 forks source link

Adding support for priority and changefreq tags #4

Closed simonc closed 1 year ago

simonc commented 1 year ago

This PR adds support for defining the priority and changefreq tags in the sitemap.xml file. This is done by adding two new variables to the front matter of a page:

sitemap_priority: 0.7
sitemap_change_frequency: weekly

This will add the following to the <url> tag in the sitemap.xml:

<priority>0.7</priority>
<changefreq>weekly</changefreq>
ayushn21 commented 1 year ago

Thanks @simonc, this looks great on first look. I'm slammed at the moment so give me a few days to look at it properly and then I'll merge and cut a new release. Should get to it next week!

ayushn21 commented 1 year ago

Released in v2.0.2.

simonc commented 1 year ago

Thanks for the release ❤️