We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f62b5e + d5d7cd4 commit e097844Copy full SHA for e097844
lib/jekyll-haml/ext/convertible.rb
@@ -1,18 +1,12 @@
1
# 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.
+# This solution redeclares the Layout class in a way that
+# don't risks Jekyll API updates anymore.
4
5
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)
+ class << Layout
+ alias old_initialize initialize
+ def initialize(*args)
+ old_initialize(*args)
16
self.content = self.transform
17
end
18
0 commit comments