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