getgrav / grav-plugin-sitemap

Grav Sitemap Plugin
https://getgrav.org
MIT License
42 stars 42 forks source link

Omit empty <lastmod> #70

Closed TomOne closed 4 years ago

TomOne commented 4 years ago

If lastmod is omitted in additions in the YAML config it’s still included as an empty element in the XML output. Empty values for <lastmod> are invalid and result in errors in the Google Search Console.

The <lastmod> element is optional and should be omitted if it’s empty.