Sitemapper
Inherits Habitat::SettingsHelpers < Habitat::TempConfig
Constants
Class methods
Build your sitemaps. The block arg is an instance of Sitemapper::Builder.
Args default to the configuration, but can be overriden.
Sitemapper.build(max_urls: 20) do |builder|
builder.add("/").add("/about")
end
DEPRECATED The ping no longer works. See each search engine for their proper methods of submitting sitemaps
Store your sitemap xml files.
Set the storage config option to the class
of the storage.
The name a sitemap is actually stored under, which picks up the
.gz extension when config.compress is set.
Build your sitemaps, streaming each file. The block arg is an instance of Sitemapper::Streamer.
Each sitemap is saved to your configured storage as it fills up, then the
sitemap_index.xml is saved last. Returns the filenames that were saved.
Args default to the configuration, but can be overriden.
Sitemapper.stream(path: "tmp/sitemaps") do |builder|
builder.add("/").add("/about")
end