lib/jekyll/page.rb in jsjohnst-jekyll-0.4.1.999.4 vs lib/jekyll/page.rb in jsjohnst-jekyll-0.4.1.999.6

- old
+ new

@@ -36,9 +36,11 @@ # +layouts+ is a Hash of {"name" => "layout"} # +site_payload+ is the site payload hash # # Returns nothing def add_layout(layouts, site_payload) + self.data['url'] = @dir + self.data['topleveldir'] = @dir.split("/")[1] payload = {"page" => self.data}.deep_merge(site_payload) do_layout(payload, layouts) end # Write the generated page file to the destination directory.