Merge branch 'master' of https://github.com/wbrady/jekyll into wbrady-master
This commit is contained in:
commit
26f8d60542
|
@ -76,9 +76,13 @@ module Jekyll
|
||||||
payload["pygments_suffix"] = converter.pygments_suffix
|
payload["pygments_suffix"] = converter.pygments_suffix
|
||||||
|
|
||||||
begin
|
begin
|
||||||
self.content = Liquid::Template.parse(self.content).render(payload, info)
|
self.content = Liquid::Template.parse(self.content).render!(payload, info)
|
||||||
rescue => e
|
rescue => e
|
||||||
puts "Liquid Exception: #{e.message} in #{self.name}"
|
puts "Liquid Exception: #{e.message} in #{self.name}"
|
||||||
|
e.backtrace.each do |backtrace|
|
||||||
|
puts backtrace
|
||||||
|
end
|
||||||
|
abort("Build Failed")
|
||||||
end
|
end
|
||||||
|
|
||||||
self.transform
|
self.transform
|
||||||
|
@ -94,9 +98,13 @@ module Jekyll
|
||||||
payload = payload.deep_merge({"content" => self.output, "page" => layout.data})
|
payload = payload.deep_merge({"content" => self.output, "page" => layout.data})
|
||||||
|
|
||||||
begin
|
begin
|
||||||
self.output = Liquid::Template.parse(layout.content).render(payload, info)
|
self.output = Liquid::Template.parse(layout.content).render!(payload, info)
|
||||||
rescue => e
|
rescue => e
|
||||||
puts "Liquid Exception: #{e.message} in #{self.data["layout"]}"
|
puts "Liquid Exception: #{e.message} in #{self.data["layout"]}"
|
||||||
|
e.backtrace.each do |backtrace|
|
||||||
|
puts backtrace
|
||||||
|
end
|
||||||
|
abort("Build Failed")
|
||||||
end
|
end
|
||||||
|
|
||||||
if layout = layouts[layout.data["layout"]]
|
if layout = layouts[layout.data["layout"]]
|
||||||
|
|
Loading…
Reference in New Issue