Sha256: dc450589032d41291f2d265f43ffafd1b5e4c5b516f22aacc19ad9ea643c65c1
Contents?: true
Size: 891 Bytes
Versions: 1
Compression:
Stored size: 891 Bytes
Contents
--- # # Define the following in your Sitefile or some # other location which will be accessed by tasks/setup.rb # # SITE.site_root = "http://webby.rubyforge.org" # extension: xml layout: nil index: false dirty: true filter: - erb --- <?xml version="1.0" encoding="utf-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <% @pages.find(:in_directory => "/", :recursive => true) do |p| next if p.created_at.nil? next unless p['index'] || p['index'].nil? -%> <url> <loc><%= SITE.site_root %><%= p.url %></loc> <lastmod><%= p.mtime.xmlschema %></lastmod> <% if p['changefreq'] || SITE.changefreq -%> <changefreq><%= p['changefreq'] || SITE.changefreq %></changefreq> <% end -%> <% if p['priority'] || SITE.priority -%> <priority><%= p['priority'] || SITE.priority %></priority> <% end -%> </url> <% end -%> </urlset>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webby-0.9.4-x86-mswin32 | examples/webby/content/sitemap.txt |