also provide html_pages. this is better for sitemaps should you wish to auto-populate page entries

This commit is contained in:
Kris Brown 2010-02-27 14:09:07 +00:00
parent e8971b2999
commit ef2fabb189
2 changed files with 7 additions and 8 deletions

View File

@ -119,8 +119,6 @@ module Jekyll
"#<Jekyll:Page @name=#{self.name.inspect}>"
end
private
def html?
output_ext == '.html'
end

View File

@ -237,6 +237,7 @@ module Jekyll
"time" => self.time,
"posts" => self.posts.sort { |a,b| b <=> a },
"pages" => self.pages,
"html_pages" => self.pages.reject { |page| !page.html? },
"categories" => post_attr_hash('categories'),
"tags" => post_attr_hash('tags')})}
end