also provide html_pages. this is better for sitemaps should you wish to auto-populate page entries
This commit is contained in:
parent
e8971b2999
commit
ef2fabb189
|
@ -119,8 +119,6 @@ module Jekyll
|
|||
"#<Jekyll:Page @name=#{self.name.inspect}>"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def html?
|
||||
output_ext == '.html'
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue