Sha256: f30c2a2d612e768309351fdf3c4724edac3dd13152855ea24cdd781f322d2844
Contents?: true
Size: 844 Bytes
Versions: 8
Compression:
Stored size: 844 Bytes
Contents
# Set the host name for URL creation SitemapGenerator::Sitemap.default_host = "http://www.example.com" SitemapGenerator::Sitemap.add_links do |sitemap| # Put links creation logic here. # # The root path '/' and sitemap index file are added automatically. # Links are added to the Sitemap in the order they are specified. # # Usage: sitemap.add(path, options={}) # (default options are used if you don't specify) # # Defaults: :priority => 0.5, :changefreq => 'weekly', # :lastmod => Time.now, :host => default_host # # # Examples: # # Add '/articles' # # sitemap.add articles_path, :priority => 0.7, :changefreq => 'daily' # # Add individual articles: # # Article.find_each do |article| # sitemap.add article_path(article), :lastmod => article.updated_at # end end
Version data entries
8 entries across 8 versions & 1 rubygems