Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update docs to reference sitemap#resources #179

Merged
merged 1 commit into from

2 participants

@johndbritton

I'm guessing that the method was renamed from pages to resources at some point.

@bhollis bhollis merged commit 01994f8 into middleman:master
@bhollis
Owner

Thanks!

@johndbritton johndbritton deleted the unknown repository branch
@johndbritton

Do you all idle an an IRC channel?

@bhollis
Owner

Nope. But maybe that's a good idea. I've joined #middleman on chat.freenode.net, and I'll hang out there for the rest of the day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 7, 2013
  1. @johndbritton
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/advanced/sitemap.html.markdown
View
4 source/advanced/sitemap.html.markdown
@@ -22,7 +22,7 @@ You can use the sitemap information to create new [dynamic pages] from `config.r
``` ruby
ready do
- sitemap.pages.group_by {|p| p.data["category"] }.each do |category, pages|
+ sitemap.resources.group_by {|p| p.data["category"] }.each do |category, pages|
proxy "/categories/#{category}.html", "category.html",
:locals => { :category => category, :pages => pages }
end
@@ -32,4 +32,4 @@ end
Then I could make a `category.html.erb` that uses the `category` and `pages` variables to build a category listing for each category.
[dynamic pages]: /dynamic-pages/
-[frontmatter]: /frontmatter/
+[frontmatter]: /frontmatter/
Something went wrong with that request. Please try again.