Permalink
Browse files

Fix Haml issue where the "site" object was missing data.

  • Loading branch information...
1 parent 663dfa0 commit ad601140c8516d712e4cac0518503ccc5fc0633a @henrik henrik committed Apr 13, 2009
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/jekyll/convertible.rb
@@ -72,9 +72,7 @@ def do_layout(payload, layouts)
payload["content_type"] = self.content_type
if self.content_type == "haml"
- context = OpenStruct.new(
- :site => OpenStruct.new(payload["site"]),
- :page => OpenStruct.new(payload["page"]))
+ context = OpenStruct.new(:site => self.site, :page => OpenStruct.new(payload["page"]))
context.extend(HamlHelpers)
self.transform

0 comments on commit ad60114

Please sign in to comment.