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,15 +119,13 @@ module Jekyll
|
||||||
"#<Jekyll:Page @name=#{self.name.inspect}>"
|
"#<Jekyll:Page @name=#{self.name.inspect}>"
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
def html?
|
||||||
|
output_ext == '.html'
|
||||||
|
end
|
||||||
|
|
||||||
def html?
|
def index?
|
||||||
output_ext == '.html'
|
basename == 'index'
|
||||||
end
|
end
|
||||||
|
|
||||||
def index?
|
|
||||||
basename == 'index'
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -237,6 +237,7 @@ module Jekyll
|
||||||
"time" => self.time,
|
"time" => self.time,
|
||||||
"posts" => self.posts.sort { |a,b| b <=> a },
|
"posts" => self.posts.sort { |a,b| b <=> a },
|
||||||
"pages" => self.pages,
|
"pages" => self.pages,
|
||||||
|
"html_pages" => self.pages.reject { |page| !page.html? },
|
||||||
"categories" => post_attr_hash('categories'),
|
"categories" => post_attr_hash('categories'),
|
||||||
"tags" => post_attr_hash('tags')})}
|
"tags" => post_attr_hash('tags')})}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue