Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Docs Webapp XMLXSL Sitemaps

Frank Kleine edited this page Apr 7, 2012 · 1 revision

Create XML 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.

Clone this wiki locally