add page variable to liquid custom tags and blocks. thx to mike west for the patch

This commit is contained in:
Seth Ladd 2011-09-20 13:03:31 -07:00
parent 72b7b1f056
commit e09f058a06
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,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