From a78b5c2f8d924b07d40292853bc0d52415839cce Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 17 Jun 2014 15:18:41 -0400 Subject: [PATCH] Include files with a url which ends in / in the site.html_pages list https://github.com/jekyll/jekyll-sitemap/issues/27 --- lib/jekyll/site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index 9b05f0f7..eaa76aad 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -341,7 +341,7 @@ module Jekyll "posts" => posts.sort { |a, b| b <=> a }, "pages" => pages, "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'), "tags" => post_attr_hash('tags'), "collections" => collections,