PageRenderTime 48ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/generators/dynamic_sitemaps/templates/config.rb

http://github.com/lassebunk/dynamic_sitemaps
Ruby | 41 lines | 5 code | 6 blank | 30 comment | 0 complexity | 5f824144986e68a8f41d828a99ab0e91 MD5 | raw file
  1. # Change this to your host. See the readme at https://github.com/lassebunk/dynamic_sitemaps
  2. # for examples of multiple hosts and folders.
  3. host "www.example.com"
  4. protocol "http"
  5. sitemap :site do
  6. url root_url, last_mod: Time.now, change_freq: "daily", priority: 1.0
  7. end
  8. # You can have multiple sitemaps like the above just make sure their names are different.
  9. # Automatically link to all pages using the routes specified
  10. # using "resources :pages" in config/routes.rb. This will also
  11. # automatically set <lastmod> to the date and time in page.updated_at:
  12. #
  13. # sitemap_for Page.scoped
  14. # For products with special sitemap name and priority, and link to comments:
  15. #
  16. # sitemap_for Product.published, name: :published_products do |product|
  17. # url product, last_mod: product.updated_at, priority: (product.featured? ? 1.0 : 0.7)
  18. # url product_comments_url(product)
  19. # end
  20. # If you want to generate multiple sitemaps in different folders (for example if you have
  21. # more than one domain, you can specify a folder before the sitemap definitions:
  22. #
  23. # Site.all.each do |site|
  24. # folder "sitemaps/#{site.domain}"
  25. # host site.domain
  26. #
  27. # sitemap :site do
  28. # url root_url
  29. # end
  30. #
  31. # sitemap_for site.products.scoped
  32. # end
  33. # Ping search engines after sitemap generation:
  34. #
  35. # ping_with "#{protocol}://#{host}/sitemap.xml"