Module | Nanoc3::Helpers::XMLSitemap |
In: |
lib/nanoc3/helpers/xml_sitemap.rb
|
Contains functionality for building XML sitemaps that will be crawled by search engines. See the [Sitemaps protocol site](www.sitemaps.org) for details.
Builds an XML sitemap and returns it.
The following attributes can optionally be set on items to change the behaviour of the sitemap:
The sitemap will also include dates on which the items 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 site configuration will need to have the following attributes:
@return [String] The XML sitemap