New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use YAML defined variable in intermediate layout #4203

bpatra opened this Issue Nov 30, 2015 · 1 comment


None yet
3 participants
Copy link

bpatra commented Nov 30, 2015

I think I found a bug when upgrading to latest jekyll (3.1.0).
In a blog post, when using a layout (e.g. postalone.html) that reuses another layout (e.g. basic.html), the YAML variables introduced in this latter layout are not defined in the final resulting blog post.
This is a regression, it worked with jekyll 2.5.3 but fails with 3.1.0.
I have created a small minimal reproduction case here . There is only one blog post and you will see that the <h1> tag defined in basic.html is not visible in the blog post generated html page.

Thank you


This comment has been minimized.

Copy link

parkr commented Nov 30, 2015

In Jekyll 3, layout metadata is available via layout in Liquid, instead of overwriting page. In this case, use {{ layout.lang }}.

Please see:

@parkr parkr closed this Nov 30, 2015

@parkr parkr added the support label Nov 30, 2015

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.