Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ad601140c8516d712e4cac0518503ccc5fc0633a 1 parent 663dfa0
@henrik henrik authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/jekyll/convertible.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.