Skip to content

Instantly share code, notes, and snippets.

@AndrewKvalheim
Created January 16, 2015 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewKvalheim/d6458b6979ee62f50395 to your computer and use it in GitHub Desktop.
Save AndrewKvalheim/d6458b6979ee62f50395 to your computer and use it in GitHub Desktop.
/ Documentation: http://www.sitemaps.org/protocol.html
doctype xml
urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'
- pages.each do |page|
url
loc = page.absolute_url
lastmod = page.mtime.iso8601
changefreq = page.data.changefreq || 'weekly'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment