Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

add page variable to liquid custom tags and blocks #413

Merged
merged 1 commit into from

3 participants

@sethladd

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

@mixonic

Needs some testing, but I would really like to see this go in. Super useful if you need to know the current page for a tag.

@parkr
Owner

Please add tests if you still want to see this in the project.

@parkr
Owner

I can see the benefit of this, definitely. @mojombo, you down?

@parkr parkr merged commit abb8e50 into jekyll:master
@parkr parkr referenced this pull request from a commit
@parkr parkr Update history to reflect merge of #413. 8446d6e
@parkr parkr referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 20, 2011
  1. add page variable to liquid custom tags and blocks. thx to mike west …

    Seth Ladd authored
    …for the patch
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/jekyll/convertible.rb
View
2  lib/jekyll/convertible.rb
@@ -69,7 +69,7 @@ def converter
#
# 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
Something went wrong with that request. Please try again.