Sha256: a0430a0a450306908d9ad0858e2affdc41f3f1ecbea7f19b89a8e628dae7a1a9
Contents?: true
Size: 846 Bytes
Versions: 25
Compression:
Stored size: 846 Bytes
Contents
require 'rubygems' require 'sitemap_generator' # Set the host name for URL creation SitemapGenerator::Sitemap.default_host = 'http://www.example.com' SitemapGenerator::Sitemap.create do # Put links creation logic here. # # The root path '/' and sitemap index file are added automatically for you. # Links are added to the Sitemap in the order they are specified. # # Usage: 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' # # add articles_path, :priority => 0.7, :changefreq => 'daily' # # Add all articles: # # Article.find_each do |article| # add article_path(article), :lastmod => article.updated_at # end end
Version data entries
25 entries across 24 versions & 1 rubygems