Skip to content

Commit

Permalink
Also return static files from collections on each_site_file
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Apr 29, 2023
1 parent bb954ff commit 80e0fb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jekyll/site.rb
Expand Up @@ -363,6 +363,7 @@ def each_site_file
pages.each { |page| yield page }
static_files.each { |file| yield(file) if file.write? }
collections.each_value { |coll| coll.docs.each { |doc| yield(doc) if doc.write? } }
collections.each_value { |coll| coll.files.each { |doc| yield(doc) if doc.write? } }
end

# Returns the FrontmatterDefaults or creates a new FrontmatterDefaults
Expand Down

0 comments on commit 80e0fb0

Please sign in to comment.