lib/jekyll/post.rb in mojombo-jekyll-0.1.6 vs lib/jekyll/post.rb in mojombo-jekyll-0.2.0

- old
+ new

@@ -72,12 +72,11 @@ # # Returns <String> def permalink self.data && self.data['permalink'] end - - + # The generated relative url of this post # e.g. /2008/11/05/my-awesome-post.html # # Returns <String> def url @@ -120,11 +119,11 @@ # # Returns nothing def add_layout(layouts, site_payload) # construct post payload related = related_posts(site_payload["site"]["posts"]) - payload = {"page" => self.to_liquid.merge(self.data), "related_posts" => related} - do_layout(payload, layouts, site_payload) + payload = {"page" => self.to_liquid.merge(self.data)} + do_layout(payload, layouts, site_payload.merge({"site" => {"related_posts" => related}})) end # Write the generated post file to the destination directory. # +dest+ is the String path to the destination dir #