Sha256: 21c0b639affef9c98fbdd641c4ba23ba500fe6221c44aa02914bbc6bd8c89c4b
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
# Change this to your host. See the readme at https://github.com/lassebunk/dynamic_sitemaps # for examples of multiple hosts and folders. host "www.example.com" sitemap :site do url root_url, last_mod: Time.now, change_freq: "daily", priority: 1.0 end # You can have multiple sitemaps like the above – just make sure their names are different. # Automatically link to all pages using the routes specified # using "resources :pages" in config/routes.rb. This will also # automatically set <lastmod> to the date and time in page.updated_at: # # sitemap_for Page.scoped # For products with special sitemap name and priority, and link to comments: # # sitemap_for Product.published, name: :published_products do |product| # url product, last_mod: product.updated_at, priority: (product.featured? ? 1.0 : 0.7) # url product_comments_url(product) # end # If you want to generate multiple sitemaps in different folders (for example if you have # more than one domain, you can specify a folder before the sitemap definitions: # # Site.all.each do |site| # folder "sitemaps/#{site.domain}" # host site.domain # # sitemap :site do # url root_url # end # # sitemap_for site.products.scoped # end # Ping search engines after sitemap generation: # # ping_with "http://#{host}/sitemap.xml"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dynamic_sitemaps-2.0.0 | lib/generators/dynamic_sitemaps/templates/config.rb |