| Module | Nanoc::Helpers::XMLSitemap |
| In: |
lib/nanoc/helpers/xml_sitemap.rb
|
Nanoc::Helpers::XMLSitemap contains functionality for building XML sitemaps that will be crawled by search engines. See the Sitemaps protocol web site, www.sitemaps.org, for details.
Returns the XML sitemap as a string.
The following attributes can optionally be set on pages to change the behaviour of the sitemap:
The sitemap will also include dates on which the pages were updated. These are generated automatically; the way this happens depends on the used data source (the filesystem data source checks the file mtimes, for instance).
The sitemap page will need to have the following attributes: