Sha256: 1a3bfb5340b0b5182b776d662f68e1647caedd772da81c87f01b7a95e94c400a

Contents?: true

Size: 795 Bytes

Versions: 8

Compression:

Stored size: 795 Bytes

Contents

DynamicSitemaps::Sitemap.draw do
  
  # default per_page is 50.000 which is the specified maximum.
  # per_page 10

  # url root_url, :last_mod => DateTime.now, :change_freq => 'daily', :priority => 1
  
  # new_page!
  
  # Product.all.each do |product|
  #   url product_url(product), :last_mod => product.updated_at, :change_freq => 'monthly', :priority => 0.8
  # end

  # new_page!
  
  # autogenerate  :products, :categories,
  #               :last_mod => :updated_at,
  #               :change_freq => 'monthly',
  #               :priority => 0.8
                
  # new_page!
  
  # autogenerate  :users,
  #               :last_mod => :updated_at,
  #               :change_freq => lambda { |user| user.very_active? ? 'weekly' : 'monthly' },
  #               :priority => 0.5
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dynamic_sitemaps-1.0.8 lib/generators/dynamic_sitemaps/templates/initializer.rb
dynamic_sitemaps-1.0.7 lib/generators/dynamic_sitemaps/templates/initializer.rb
dynamic_sitemaps-1.0.6 lib/generators/dynamic_sitemaps/templates/initializer.rb
dynamic_sitemaps-1.0.5 lib/generators/dynamic_sitemaps/templates/initializer.rb
dynamic_sitemaps-1.0.4 lib/generators/dynamic_sitemaps/templates/initializer.rb
dynamic_sitemaps-1.0.3 lib/generators/dynamic_sitemaps/templates/initializer.rb
dynamic_sitemaps-1.0.2 lib/generators/dynamic_sitemaps/templates/initializer.rb
dynamic_sitemaps-1.0.1 lib/generators/dynamic_sitemaps/templates/initializer.rb