lib/jekyll/readers/language_collection_reader.rb in jekyll-language-plugin-1.3.0 vs lib/jekyll/readers/language_collection_reader.rb in jekyll-language-plugin-1.3.1

- old
+ new

@@ -3,10 +3,11 @@ module Jekyll class LanguageCollectionReader < CollectionReader def read site.collections.each do |_, collection| - collection.read unless SPECIAL_COLLECTIONS.include?(collection.label) + next if SPECIAL_COLLECTIONS.include?(collection.label) + collection.read collection.docs = collection.docs.flat_map do |document| ldocuments = [] ldocument = LanguageDocument.new(document.path, { site: @site, collection: collection }) ldocument.read