{"action":"created","issue":{"url":"https://api.github.com/repos/mkdocs/mkdocs/issues/1416","repository_url":"https://api.github.com/repos/mkdocs/mkdocs","labels_url":"https://api.github.com/repos/mkdocs/mkdocs/issues/1416/labels{/name}","comments_url":"https://api.github.com/repos/mkdocs/mkdocs/issues/1416/comments","events_url":"https://api.github.com/repos/mkdocs/mkdocs/issues/1416/events","html_url":"https://github.com/mkdocs/mkdocs/issues/1416","id":299545745,"number":1416,"title":"Metadata arrays are not parsed and available in template","user":{"login":"danobot","id":7984567,"avatar_url":"https://avatars2.githubusercontent.com/u/7984567?v=4","gravatar_id":"","url":"https://api.github.com/users/danobot","html_url":"https://github.com/danobot","followers_url":"https://api.github.com/users/danobot/followers","following_url":"https://api.github.com/users/danobot/following{/other_user}","gists_url":"https://api.github.com/users/danobot/gists{/gist_id}","starred_url":"https://api.github.com/users/danobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danobot/subscriptions","organizations_url":"https://api.github.com/users/danobot/orgs","repos_url":"https://api.github.com/users/danobot/repos","events_url":"https://api.github.com/users/danobot/events{/privacy}","received_events_url":"https://api.github.com/users/danobot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-22T23:23:41Z","updated_at":"2018-02-23T17:00:10Z","closed_at":null,"author_association":"NONE","body":"I am trying to add some metadata to my documentation page like this:\r\n```\r\n---\r\ncomments: \r\n   - 'My comment'\r\n   - 'another comment'\r\n---\r\n```\r\n\r\nI would expect these to be available in my template via `{{page.meta.comments}}` and the value to be an array like `['My comment', 'another comment']`\r\nFor some reason, the YAML array syntax shown above is not recognised and the variable comes back empty.\r\nIt seems meta only recognises strings that start on the same line as the variable definition like `comment: this is my comment` or `comment: 'commenting'`"},"comment":{"url":"https://api.github.com/repos/mkdocs/mkdocs/issues/comments/368070355","html_url":"https://github.com/mkdocs/mkdocs/issues/1416#issuecomment-368070355","issue_url":"https://api.github.com/repos/mkdocs/mkdocs/issues/1416","id":368070355,"user":{"login":"waylan","id":78846,"avatar_url":"https://avatars3.githubusercontent.com/u/78846?v=4","gravatar_id":"","url":"https://api.github.com/users/waylan","html_url":"https://github.com/waylan","followers_url":"https://api.github.com/users/waylan/followers","following_url":"https://api.github.com/users/waylan/following{/other_user}","gists_url":"https://api.github.com/users/waylan/gists{/gist_id}","starred_url":"https://api.github.com/users/waylan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waylan/subscriptions","organizations_url":"https://api.github.com/users/waylan/orgs","repos_url":"https://api.github.com/users/waylan/repos","events_url":"https://api.github.com/users/waylan/events{/privacy}","received_events_url":"https://api.github.com/users/waylan/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T17:00:10Z","updated_at":"2018-02-23T17:00:10Z","author_association":"MEMBER","body":"The frontmatter is parsed and removed from the document just before passing to Markdown. The data is stored in `page.meta`. If you want to do any additional processing you would need to create a MkDocs plugin. "}}
{"actor":{"display_login":"waylan"}}