+ [2016-08-07T18:44:37Z] miklb how does chruby differ from rbenv?
+ [2016-08-07T18:46:08Z] nickjj less magic mainly
+ [2016-08-07T18:46:19Z] nickjj but both have the same end goal
+ [2016-08-07T21:02:47Z] bobeirasa how do i set jekyll to use another ruby?
+ [2016-08-07T21:02:58Z] bobeirasa does it just uses the default?

message no. 145618

Posted by spudowiar in #jekyll at 2016-08-07T03:47:10Z

ok
+ [2016-08-08T14:33:19Z] nickjj can someone explain why this happens? i have a posts.html template which is a blog index page , within each post (that uses the posts layout) i optionally render a hero image if the "hero" frontmatter exists in a post
+ [2016-08-08T14:33:52Z] nickjj this works great and i can reference post.hero as expected -- however, if i apply this exact same code to an individual post i cannot reference post.hero , instead i need to use page.hero
+ [2016-08-08T14:41:58Z] jaybe nickjj: you are probably using a [[ liquid ]] loop to produce the post index and the loop is built with the "post" term as the variable
+ [2016-08-08T14:41:58Z] jekyllrb (liquid) (#1) https://github.com/Shopify/liquid/wiki/Liquid-for-Designers, or (#2) https://github.com/jekyll/jekyll/blob/master/lib/jekyll/filters.rb#L204, or (#3) http://jekyllrb.com/docs/templates/, or (#4) http://shopify.github.com/liquid/
+ [2016-08-08T14:42:31Z] jaybe The actual variable containing the [[ frontmatter ]] is page.VAR