Skip to content

Instantly share code, notes, and snippets.

@johndbritton
Created April 7, 2013 02:04
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 johndbritton/5328556 to your computer and use it in GitHub Desktop.
Save johndbritton/5328556 to your computer and use it in GitHub Desktop.
ready do
sitemap.resources.group_by {|p| p.data["category"] }.each do |category, posts|
proxy "/category/#{category}.html", "category.html",
:locals => { :category => category, :posts => posts }, :ignore => true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment