github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/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