I will chain blocks if I want to chain blocks.
This commit is contained in:
parent
0d0ed561fd
commit
3a3405fe51
|
@ -32,10 +32,8 @@ module Jekyll
|
|||
#
|
||||
# Returns nothing.
|
||||
def read_publishable(dir, magic_dir, matcher)
|
||||
documents = read_content(dir, magic_dir, matcher).tap do |docs|
|
||||
docs.each(&:read)
|
||||
end
|
||||
documents.select do |doc|
|
||||
read_content(dir, magic_dir, matcher).tap { |docs| docs.each(&:read) }
|
||||
.select do |doc|
|
||||
site.publisher.publish?(doc).tap do |will_publish|
|
||||
if !will_publish && site.publisher.hidden_in_the_future?(doc)
|
||||
Jekyll.logger.debug "Skipping:", "#{doc.relative_path} has a future date"
|
||||
|
|
Loading…
Reference in New Issue