provide access to the layout name so when shit goes down we get the name of the layout which couldn't be processed
This commit is contained in:
parent
a95fa70d72
commit
ff8cf7c868
|
@ -96,7 +96,7 @@ module Jekyll
|
||||||
payload = payload.deep_merge({"content" => self.output, "page" => layout.data})
|
payload = payload.deep_merge({"content" => self.output, "page" => layout.data})
|
||||||
|
|
||||||
self.output = self.render_liquid(layout.content,
|
self.output = self.render_liquid(layout.content,
|
||||||
payload.merge({:file => self.data["layout"]}),
|
payload.merge({:file => layout.name}),
|
||||||
info)
|
info)
|
||||||
|
|
||||||
if layout = layouts[layout.data["layout"]]
|
if layout = layouts[layout.data["layout"]]
|
||||||
|
|
|
@ -5,6 +5,9 @@ module Jekyll
|
||||||
# Gets the Site object.
|
# Gets the Site object.
|
||||||
attr_reader :site
|
attr_reader :site
|
||||||
|
|
||||||
|
# Gets the name of this layout.
|
||||||
|
attr_reader :name
|
||||||
|
|
||||||
# Gets/Sets the extension of this layout.
|
# Gets/Sets the extension of this layout.
|
||||||
attr_accessor :ext
|
attr_accessor :ext
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue