lib/jekyll/site.rb in spinto-jekyll-0.11.2.3 vs lib/jekyll/site.rb in spinto-jekyll-0.11.2.5
- old
+ new
@@ -198,21 +198,22 @@
# Render the site to the destination.
#
# Returns nothing.
def render
+ payload = site_payload
self.posts.each do |post|
- post.render(self.layouts, site_payload)
+ post.render(self.layouts, payload)
end
if self.preview
self.unpublished_posts.sort.each do |post|
- post.render(self.layouts, site_payload)
+ post.render(self.layouts, payload)
end
end
self.pages.each do |page|
- page.render(self.layouts, site_payload)
+ page.render(self.layouts, payload)
end
self.categories.values.map { |ps| ps.sort! { |a, b| b <=> a } }
self.tags.values.map { |ps| ps.sort! { |a, b| b <=> a } }
rescue Errno::ENOENT => e