{"action":"opened","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/4246","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/4246/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/4246/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/4246/events","html_url":"https://github.com/jekyll/jekyll/issues/4246","id":121352273,"number":4246,"title":"YAML Front Matter not attached to `page` in layout","user":{"login":"dalanmiller","id":863286,"avatar_url":"https://avatars.githubusercontent.com/u/863286?v=3","gravatar_id":"","url":"https://api.github.com/users/dalanmiller","html_url":"https://github.com/dalanmiller","followers_url":"https://api.github.com/users/dalanmiller/followers","following_url":"https://api.github.com/users/dalanmiller/following{/other_user}","gists_url":"https://api.github.com/users/dalanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/dalanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalanmiller/subscriptions","organizations_url":"https://api.github.com/users/dalanmiller/orgs","repos_url":"https://api.github.com/users/dalanmiller/repos","events_url":"https://api.github.com/users/dalanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/dalanmiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-09T22:12:29Z","updated_at":"2015-12-09T22:12:29Z","closed_at":null,"body":"Also posted in #2836 \r\n\r\nIf I set YAML Front Matter in a layouts file _layouts/post.html like so:\r\n\r\n```\r\n--- \r\nlayout: default\r\nbody_class: blog\r\n---\r\n```\r\n\r\nI should be able to access `body_class` via `page.body_class` in the `_layouts/default.html` file correct? This isn't happening currently in Jekyll 3.0.1 and the value results in `nil`.\r\n\r\nInterestingly, normal usage of `page.body_class` is working, such as in an if statement and other places. However, in this specific case (within a string?) it is failing:\r\n\r\n```\r\n<div class=\"{{page.body_class}}\">\r\n```\r\n\r\nHowever, `<div class=\"{{ layout.body_class }}\">` is working. Can someone explain why this is? "}}