Rubocop: lib/jekyll/readers/page_reader.rb
This commit is contained in:
parent
e85690a61f
commit
615a9ee9ac
|
@ -14,7 +14,9 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns an array of static pages.
|
# Returns an array of static pages.
|
||||||
def read(files)
|
def read(files)
|
||||||
files.map { |page| @unfiltered_content << Page.new(@site, @site.source, @dir, page) }
|
files.map do |page|
|
||||||
|
@unfiltered_content << Page.new(@site, @site.source, @dir, page)
|
||||||
|
end
|
||||||
@unfiltered_content.select { |page| site.publisher.publish?(page) }
|
@unfiltered_content.select { |page| site.publisher.publish?(page) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue