lib/cloudcannon-jekyll/generators/collections.rb in cloudcannon-jekyll-4.0.1 vs lib/cloudcannon-jekyll/generators/collections.rb in cloudcannon-jekyll-4.0.2

- old
+ new

@@ -295,10 +295,12 @@ static_pages = @site.static_files.select { |doc| allowed_static_file?(doc) } pages + static_pages end def allowed_document?(doc) - if doc.instance_of?(Jekyll::Page) + if !IS_JEKYLL_2_X_X && !IS_JEKYLL_3_04_X && doc.instance_of?(Jekyll::PageWithoutAFile) + false + elsif doc.instance_of?(Jekyll::Page) allowed_page?(doc) elsif doc.instance_of?(Jekyll::StaticFile) allowed_static_file?(doc) else true