I don't think there is a good way to do this with Jekyll as it is. convertible.rb
passes the site
object only to Liquid, which does not contain any data related to the page.
I would suggest just editing convertible.rb
to transfer the data you need by sending a transfer request to the main project to pull your changes, and using your fork locally to create your site. Hooray for open source!
The following trivial patch works for me locally against Jekyll 0.11.0, making the hash of the page available in Liquid as context.registers[:page]
(note: this is a pre-converted hash at this point, so you will get access to context.registers[:page]['url']
, not context.registers[:page].url
):
diff --git a/lib/jekyll/convertible.rb b/lib/jekyll/convertible.rb index d33abc5..a674ef5 100644 --- a/lib/jekyll/convertible.rb +++ b/lib/jekyll/convertible.rb @@ -69,7 +69,7 @@ module Jekyll
Hope this helps!
source share