Merge pull request #413 from sethladd/master

add page variable to liquid custom tags and blocks
This commit is contained in:
Parker Moore 2013-04-09 16:54:20 -07:00
commit abb8e5039e
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ module Jekyll
#
# Returns nothing.
def do_layout(payload, layouts)
info = { :filters => [Jekyll::Filters], :registers => { :site => self.site } }
info = { :filters => [Jekyll::Filters], :registers => { :site => self.site, :page => payload['page'] } }
# render and transform content (this becomes the final content of the object)
payload["pygments_prefix"] = converter.pygments_prefix