-
Notifications
You must be signed in to change notification settings - Fork 0
Docs Webapp XMLXSL Sitemaps
XML sitemaps are a useful tool to tell search engine crawlers which URLs on a given website exists. For more informations about sitemaps see sitemaps.org and Google webmaster help.
To enable the creation of sitemaps you need to set the project's url in config/config.ini:
net.stubbles.project.url="http://www.example.org/"
This url will be used as base url within the generated sitemap.
By default all routes defined in pages/conf of a project will be added to the sitemap. To prevent adding a route to the sitemap just add a property to the configuration of the route you do not want to appear in the sitemap:
sitemap-enable="false"
All sitemap entries will receive a changefreq entry of weekly. To change this, just add a property to the route configuration:
sitemap-changefreq="monthly"
For a list of allowed values see the sitemap specification.
The default priority of all routes is 0.5, except for the index route, it will receive 1.0 as priority. To change the priority of a route add a property to its configuration:
sitemap-priority="0.8"
The <lastmod/> element is currently not supported. Also there is no support to create dynamic entries depending on parameters.