# File lib/jekyll/publisher.rb, line 3 def initialize(site) @site = site end
# File lib/jekyll/publisher.rb, line 7 def publish?(thing) can_be_published?(thing) && !hidden_in_the_future?(thing) end
# File lib/jekyll/publisher.rb, line 17 def can_be_published?(thing) thing.data.fetch("published", true) || @site.unpublished end