{"action":"created","issue":{"url":"https://api.github.com/repos/metalsmith/metalsmith/issues/166","repository_url":"https://api.github.com/repos/metalsmith/metalsmith","labels_url":"https://api.github.com/repos/metalsmith/metalsmith/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/metalsmith/metalsmith/issues/166/comments","events_url":"https://api.github.com/repos/metalsmith/metalsmith/issues/166/events","html_url":"https://github.com/metalsmith/metalsmith/issues/166","id":105544092,"number":166,"title":"How to read YAML front-matter inside template?","user":{"login":"fghhfg","id":1284845,"avatar_url":"https://avatars.githubusercontent.com/u/1284845?v=3","gravatar_id":"","url":"https://api.github.com/users/fghhfg","html_url":"https://github.com/fghhfg","followers_url":"https://api.github.com/users/fghhfg/followers","following_url":"https://api.github.com/users/fghhfg/following{/other_user}","gists_url":"https://api.github.com/users/fghhfg/gists{/gist_id}","starred_url":"https://api.github.com/users/fghhfg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fghhfg/subscriptions","organizations_url":"https://api.github.com/users/fghhfg/orgs","repos_url":"https://api.github.com/users/fghhfg/repos","events_url":"https://api.github.com/users/fghhfg/events{/privacy}","received_events_url":"https://api.github.com/users/fghhfg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/metalsmith/metalsmith/labels/question","name":"question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-09-09T08:31:59Z","updated_at":"2016-09-25T20:23:30Z","closed_at":"2016-09-25T20:23:30Z","body":"How to pass [YAML front-matter on posts] into template?\r\n\r\nIt seems you don't need to do anything special, just type\r\n\r\n```\r\n---\r\ntitle: aaaa\r\nanythingYouWantVariable: bbb\r\n---\r\n\r\nsomthing content...\r\n```\r\nright?\r\n\r\nthen how to read [YAML front-matter on posts] inside template?\r\n\r\nI want to read [value of `title` and `anythingYouWantVariable`] inside template.\r\n\r\nI still don't get it after reading #107 #112"},"comment":{"url":"https://api.github.com/repos/metalsmith/metalsmith/issues/comments/249444422","html_url":"https://github.com/metalsmith/metalsmith/issues/166#issuecomment-249444422","issue_url":"https://api.github.com/repos/metalsmith/metalsmith/issues/166","id":249444422,"user":{"login":"woodyrew","id":1902064,"avatar_url":"https://avatars.githubusercontent.com/u/1902064?v=3","gravatar_id":"","url":"https://api.github.com/users/woodyrew","html_url":"https://github.com/woodyrew","followers_url":"https://api.github.com/users/woodyrew/followers","following_url":"https://api.github.com/users/woodyrew/following{/other_user}","gists_url":"https://api.github.com/users/woodyrew/gists{/gist_id}","starred_url":"https://api.github.com/users/woodyrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodyrew/subscriptions","organizations_url":"https://api.github.com/users/woodyrew/orgs","repos_url":"https://api.github.com/users/woodyrew/repos","events_url":"https://api.github.com/users/woodyrew/events{/privacy}","received_events_url":"https://api.github.com/users/woodyrew/received_events","type":"User","site_admin":false},"created_at":"2016-09-25T20:23:30Z","updated_at":"2016-09-25T20:23:30Z","body":"This is to do with plugins rather than Metalsmith. If you're still having issue please re-open or ask a question in the [Slack Chanel](https://metalsmith-slack.herokuapp.com/)."}}
{"actor":{"display_login":"woodyrew"}}