github.com/armen/terraform@v0.5.2-0.20150529052519-caa8117a08f1/website/source/sitemap.xml.builder (about)

     1  ---
     2  layout: false
     3  ---
     4  
     5  xml.instruct!
     6  xml.urlset 'xmlns' => "http://www.sitemaps.org/schemas/sitemap/0.9" do
     7    sitemap
     8      .resources
     9      .select { |page| page.path =~ /\.html/ }
    10      .select { |page| !page.data.noindex }
    11      .each do |page|
    12        xml.url do
    13          xml.loc File.join(base_url, page.url)
    14          xml.lastmod Date.today.to_time.iso8601
    15          xml.changefreq page.data.changefreq || "monthly"
    16          xml.priority page.data.priority || "0.5"
    17        end
    18    end
    19  end