Create a gist now

Instantly share code, notes, and snippets.

Jekyll plugin to have layouts transformed by Converters as well, taken from https://github.com/mojombo/jekyll/pull/351
module Jekyll
class Layout
alias old_initialize initialize
def initialize(*args)
old_initialize(*args)
self.transform
end
end
end
@ValeryVS

replace

self.transform

with

self.content = self.transform
self.content

on jekyll 2.3+
jekyll/jekyll#2961 (comment)

@matthiasbeyer

I get:

jekyll 2.5.3 | Error:  undefined local variable or method `path' for #<Jekyll::Layout:0x00000000b803a8>

With this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment