Skip to content

Commit e097844

Browse files
committed
Merge branch 'master' of https://github.com/kalvinarts/jekyll-haml into kalvinarts-master
Conflicts: lib/jekyll-haml/ext/convertible.rb
2 parents 1f62b5e + d5d7cd4 commit e097844

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

lib/jekyll-haml/ext/convertible.rb

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
# Re-open Layout class to convert our HAML Layout content.
2-
# This solution risks Jekyll API updates, and potential
3-
# interference from other included plugins.
2+
# This solution redeclares the Layout class in a way that
3+
# don't risks Jekyll API updates anymore.
44

55
module Jekyll
6-
class Layout
7-
def initialize(site, base, name)
8-
@site = site
9-
@base = base
10-
@name = name
11-
12-
self.data = {}
13-
14-
self.process(name)
15-
self.read_yaml(base, name)
6+
class << Layout
7+
alias old_initialize initialize
8+
def initialize(*args)
9+
old_initialize(*args)
1610
self.content = self.transform
1711
end
1812
end

0 commit comments

Comments
 (0)