don't check if draft is published or if its date is in the future
This commit is contained in:
parent
2588d681c9
commit
3e164d6daf
|
@ -206,16 +206,14 @@ module Jekyll
|
||||||
return unless File.exists?(base)
|
return unless File.exists?(base)
|
||||||
entries = Dir.chdir(base) { filter_entries(Dir['**/*']) }
|
entries = Dir.chdir(base) { filter_entries(Dir['**/*']) }
|
||||||
|
|
||||||
# first pass processes, but does not yet render post content
|
# first pass processes, but does not yet render draft content
|
||||||
entries.each do |f|
|
entries.each do |f|
|
||||||
if Draft.valid?(f)
|
if Draft.valid?(f)
|
||||||
post = Draft.new(self, self.source, dir, f)
|
draft = Draft.new(self, self.source, dir, f)
|
||||||
|
|
||||||
if post.published && (self.future || post.date <= self.time)
|
self.posts << draft
|
||||||
self.posts << post
|
draft.categories.each { |c| self.categories[c] << draft }
|
||||||
post.categories.each { |c| self.categories[c] << post }
|
draft.tags.each { |c| self.tags[c] << draft }
|
||||||
post.tags.each { |c| self.tags[c] << post }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue