{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/3287","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/3287/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/3287/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/3287/events","html_url":"https://github.com/jekyll/jekyll/issues/3287","id":53996853,"number":3287,"title":"Front matter defaults for collection's documents in subfolders","user":{"login":"iloveip","id":4873895,"avatar_url":"https://avatars.githubusercontent.com/u/4873895?v=3","gravatar_id":"","url":"https://api.github.com/users/iloveip","html_url":"https://github.com/iloveip","followers_url":"https://api.github.com/users/iloveip/followers","following_url":"https://api.github.com/users/iloveip/following{/other_user}","gists_url":"https://api.github.com/users/iloveip/gists{/gist_id}","starred_url":"https://api.github.com/users/iloveip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iloveip/subscriptions","organizations_url":"https://api.github.com/users/iloveip/orgs","repos_url":"https://api.github.com/users/iloveip/repos","events_url":"https://api.github.com/users/iloveip/events{/privacy}","received_events_url":"https://api.github.com/users/iloveip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-11T16:48:28Z","updated_at":"2015-10-09T07:18:25Z","closed_at":null,"body":"Hi there,\r\n\r\nI would like to organize collection's documents in subfolders and assign them different categories through front matter defaults. I have the following structure:\r\n\r\n````\r\n_kb\r\n    - category1\r\n        - article1.md\r\n    - category2\r\n        - article2.md\r\n````\r\n\r\n In my `_config.yml` file I have:\r\n\r\n````\r\n# Collections\r\ncollections:\r\n  kb:\r\n    output: true\r\n    permalink: /kb/:name/\r\n\r\n# Defaults\r\ndefaults:\r\n  -\r\n    scope:\r\n      path: \"_kb/category1/\"\r\n      type: \"kb\"\r\n    values:\r\n      category: \"category1\"\r\n  -\r\n    scope:\r\n      path: \"_kb/category2/\"\r\n      type: \"kb\"\r\n    values:\r\n      category: \"category2\"\r\n````\r\n\r\nBut this doesn't work. Any idea how I can assign different categories to documents in different subfolders through front-matter defaults?"},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/146775625","html_url":"https://github.com/jekyll/jekyll/issues/3287#issuecomment-146775625","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/3287","id":146775625,"user":{"login":"solygen","id":1290625,"avatar_url":"https://avatars.githubusercontent.com/u/1290625?v=3","gravatar_id":"","url":"https://api.github.com/users/solygen","html_url":"https://github.com/solygen","followers_url":"https://api.github.com/users/solygen/followers","following_url":"https://api.github.com/users/solygen/following{/other_user}","gists_url":"https://api.github.com/users/solygen/gists{/gist_id}","starred_url":"https://api.github.com/users/solygen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solygen/subscriptions","organizations_url":"https://api.github.com/users/solygen/orgs","repos_url":"https://api.github.com/users/solygen/repos","events_url":"https://api.github.com/users/solygen/events{/privacy}","received_events_url":"https://api.github.com/users/solygen/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T07:18:25Z","updated_at":"2015-10-09T07:18:25Z","body":"+1"}}