{"action":"reopened","issue":{"url":"https://api.github.com/repos/contentful-labs/contentful-metalsmith/issues/17","labels_url":"https://api.github.com/repos/contentful-labs/contentful-metalsmith/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/contentful-labs/contentful-metalsmith/issues/17/comments","events_url":"https://api.github.com/repos/contentful-labs/contentful-metalsmith/issues/17/events","html_url":"https://github.com/contentful-labs/contentful-metalsmith/issues/17","id":112628721,"number":17,"title":"Getting structure right","user":{"login":"adamliptrot","id":738739,"avatar_url":"https://avatars.githubusercontent.com/u/738739?v=3","gravatar_id":"","url":"https://api.github.com/users/adamliptrot","html_url":"https://github.com/adamliptrot","followers_url":"https://api.github.com/users/adamliptrot/followers","following_url":"https://api.github.com/users/adamliptrot/following{/other_user}","gists_url":"https://api.github.com/users/adamliptrot/gists{/gist_id}","starred_url":"https://api.github.com/users/adamliptrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamliptrot/subscriptions","organizations_url":"https://api.github.com/users/adamliptrot/orgs","repos_url":"https://api.github.com/users/adamliptrot/repos","events_url":"https://api.github.com/users/adamliptrot/events{/privacy}","received_events_url":"https://api.github.com/users/adamliptrot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T16:29:22Z","updated_at":"2015-10-22T09:45:44Z","closed_at":null,"body":"I'm adding this into a Metalsmith build and am having problems getting the structure to work.\r\nI have this in src/news/index.md:\r\n```\r\n---\r\ntitle: News\r\ncontentful:\r\n    space_id: <space_id_here>\r\n    entry_template: newspost.hbt\r\n    entry_filename_pattern: :sys.locale/:fields.slug\r\n    permalink_style: true\r\ntemplate: news.hbt\r\n---\r\n```\r\nwhich produces the content in both the list view and individual entries but doesn't structure the folders correctly (it places id-named folders in the root with index.html in each)\r\n\r\nIf I indent the metadata as per the example:\r\n```\r\n---\r\ntitle: News\r\ncontentful:\r\n    space_id: <space_id_here>\r\n        entry_template: newspost.hbt\r\n        entry_filename_pattern: :sys.locale/:fields.slug\r\n        permalink_style: true\r\ntemplate: news.hbt\r\n---\r\n```\r\nthen nothing is processed - no list or entry views are generated.\r\nCan you point me in the right direction?"}}