Include files with a url which ends in / in the site.html_pages list

https://github.com/jekyll/jekyll-sitemap/issues/27
This commit is contained in:
Parker Moore 2014-06-17 15:18:41 -04:00
parent df33ff7462
commit a78b5c2f8d
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ module Jekyll
"posts" => posts.sort { |a, b| b <=> a }, "posts" => posts.sort { |a, b| b <=> a },
"pages" => pages, "pages" => pages,
"static_files" => static_files.sort { |a, b| a.relative_path <=> b.relative_path }, "static_files" => static_files.sort { |a, b| a.relative_path <=> b.relative_path },
"html_pages" => pages.reject { |page| !page.html? }, "html_pages" => pages.select { |page| page.html? || page.url.end_with?("/") },
"categories" => post_attr_hash('categories'), "categories" => post_attr_hash('categories'),
"tags" => post_attr_hash('tags'), "tags" => post_attr_hash('tags'),
"collections" => collections, "collections" => collections,