Sha256: 39d6f4d184fdaf61d43166a91b524801d3e75795843a3181397ee6a4a9b9704d

Contents?: true

Size: 799 Bytes

Versions: 57

Compression:

Stored size: 799 Bytes

Contents

# 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

57 entries across 57 versions & 5 rubygems

Version Path
sitemap_generator-5.0.4 templates/sitemap.rb
sitemap_generator-5.0.3 templates/sitemap.rb
sitemap_generator-5.0.2 templates/sitemap.rb
sitemap_generator-5.0.1 templates/sitemap.rb
sitemap_generator-5.0.0 templates/sitemap.rb
sitemap_generator-5.0.0.beta1 templates/sitemap.rb
sitemap_generator-5.0.0.beta templates/sitemap.rb
sitemap_generator-4.3.1 templates/sitemap.rb
sitemap_generator-4.3.0 templates/sitemap.rb
sitemap_generator-4.2.0 templates/sitemap.rb
sitemap_generator-4.1.1 templates/sitemap.rb
sitemap_generator-4.1.0 templates/sitemap.rb
sitemap_generator-4.0.1 templates/sitemap.rb
sitemap_generator-4.0 templates/sitemap.rb
sitemap_generator-4.0.alpha templates/sitemap.rb
sitemap_generator-3.4 templates/sitemap.rb
sitemap_generator-3.3 templates/sitemap.rb
sitemap_generator-3.2.1 templates/sitemap.rb
sitemap_generator-3.2 templates/sitemap.rb
sitemap_generator-3.1.1 templates/sitemap.rb