getgrav / grav-plugin-sitemap

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

Changefrequency float validation error #31

Closed DavideTriso closed 4 years ago

DavideTriso commented 7 years ago

Setting the changefrequency to 1 causes an error:

"cannot resolve a node with !<tag:yaml.org,2002:float> explicit tag at line ..., column ...: priority: !!float 1"

sitemap:
    changefreq: yearly
    priority: !!float 1
flaviocopes commented 7 years ago

Weird, seems that YAML is claiming something is wrong in the format, but I cannot replicate the problem.

DavideTriso commented 7 years ago

The error appears every time I set 'changefreq' to 1 in the admin plugin. I have made some tests and changing the validation type to 'number' for 'header.sitemap.priority' in the blueprint sitemap.yaml seems to solve the problem.

flaviocopes commented 7 years ago

Cannot replicate. If anyone else stumbles on this, comment here