Sha256: 4228ba1f1c995e33e51ee10713a9dcfb54c0da7d450f1c13fb821c8c840c96b0
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
xml.instruct! xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do @locales.each do |locale| ::I18n.locale = locale # Add XML entry only if there is a valid page_url found above. xml.url do xml.loc url_for(page_url) xml.lastmod page.updated_at.to_date end if page_url.present? and page.show_in_menu? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
answers-core-0.0.0.2 | lib/generators/answers/cms/templates/app/views/sitemap/index.xml.builder |
answers-core-0.0.0 | lib/generators/answers/cms/templates/app/views/sitemap/index.xml.builder |