Method: Jekyll::Collection#read
- Defined in:
- lib/jekyll/collection.rb
#read ⇒ Object
Read the allowed documents into the collection’s array of docs.
Returns the sorted array of docs.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/jekyll/collection.rb', line 57 def read filtered_entries.each do |file_path| full_path = collection_dir(file_path) next if File.directory?(full_path) if Utils.has_yaml_header? full_path read_document(full_path) else read_static_file(file_path, full_path) end end site.static_files.concat(files) unless files.empty? sort_docs! end |