{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/5587","repository_url":"https://api.github.com/repos/jekyll/jekyll","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/5587/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/5587/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/5587/events","html_url":"https://github.com/jekyll/jekyll/pull/5587","id":189959752,"number":5587,"title":"Fix bad config YAML in collections example","user":{"login":"happycollision","id":3663628,"avatar_url":"https://avatars.githubusercontent.com/u/3663628?v=3","gravatar_id":"","url":"https://api.github.com/users/happycollision","html_url":"https://github.com/happycollision","followers_url":"https://api.github.com/users/happycollision/followers","following_url":"https://api.github.com/users/happycollision/following{/other_user}","gists_url":"https://api.github.com/users/happycollision/gists{/gist_id}","starred_url":"https://api.github.com/users/happycollision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/happycollision/subscriptions","organizations_url":"https://api.github.com/users/happycollision/orgs","repos_url":"https://api.github.com/users/happycollision/repos","events_url":"https://api.github.com/users/happycollision/events{/privacy}","received_events_url":"https://api.github.com/users/happycollision/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-17T07:13:21Z","updated_at":"2016-11-17T15:46:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jekyll/jekyll/pulls/5587","html_url":"https://github.com/jekyll/jekyll/pull/5587","diff_url":"https://github.com/jekyll/jekyll/pull/5587.diff","patch_url":"https://github.com/jekyll/jekyll/pull/5587.patch"},"body":"If you add the previous version to your config file, you'd get an error on build/serve."},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/261282439","html_url":"https://github.com/jekyll/jekyll/pull/5587#issuecomment-261282439","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/5587","id":261282439,"user":{"login":"happycollision","id":3663628,"avatar_url":"https://avatars.githubusercontent.com/u/3663628?v=3","gravatar_id":"","url":"https://api.github.com/users/happycollision","html_url":"https://github.com/happycollision","followers_url":"https://api.github.com/users/happycollision/followers","following_url":"https://api.github.com/users/happycollision/following{/other_user}","gists_url":"https://api.github.com/users/happycollision/gists{/gist_id}","starred_url":"https://api.github.com/users/happycollision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/happycollision/subscriptions","organizations_url":"https://api.github.com/users/happycollision/orgs","repos_url":"https://api.github.com/users/happycollision/repos","events_url":"https://api.github.com/users/happycollision/events{/privacy}","received_events_url":"https://api.github.com/users/happycollision/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T15:46:10Z","updated_at":"2016-11-17T15:46:10Z","body":"That's what I thought, but putting this into the config file:\r\n\r\n```yaml\r\ncollections:\r\n  - my_collection:\r\n      output: true\r\n```\r\n\r\nresults in this error in the terminal:\r\n\r\n```txt\r\nConfiguration file: /Users/Don/Git Projects/some-site/_config.yml\r\n            Source: /Users/Don/Git Projects/some-site\r\n       Destination: /Users/Don/Git Projects/some-site/_site\r\n Incremental build: disabled. Enable with --incremental\r\n      Generating... \r\njekyll 3.0.2 | Error:  undefined method `gsub' for {\"my_collection\"=>{\"output\"=>true}}:Hash\r\n```\r\n\r\nConversely, this\r\n\r\n```yaml\r\ncollections:\r\n  my_collection:\r\n    output: true\r\n```\r\n\r\nproduces no errors and behaves as expected (the collection outputs and I can access it at `site.my_collection`).\r\n\r\nThis also seems to be exactly in line with the [current documentation for collections](http://jekyllrb.com/docs/collections/#step-3-optionally-render-your-collections-documents-into-independent-files). (Or that same [collection documentation from the latest commit on master](https://github.com/jekyll/jekyll/blob/6be62def90e1b379b72f9b656094117d0dad4a74/docs/_docs/collections.md#step-3-optionally-render-your-collections-documents-into-independent-files))\r\n\r\nJust above that link on those pages is the \"Step 1\" section, which seems to suggest that if you want to specify metadata for a collection, you must not use an array. From the documentation: \r\n\r\n> Add the following to your site's `_config.yml` file, replacing `my_collection`\r\n> with the name of your collection:\r\n> \r\n> ```yaml\r\n> collections:\r\n> - my_collection\r\n> ```\r\n> \r\n> You can optionally specify metadata for your collection in the configuration:\r\n> \r\n> ```yaml\r\n> collections:\r\n>   my_collection:\r\n>     foo: bar\r\n> ```\r\n\r\nAm I missing something?"}}
{"actor":{"display_login":"happycollision"}}