{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/4660","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/4660/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/4660/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/4660/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/4660","id":307839914,"number":4660,"title":"Page specific partials?","user":{"login":"jarodtaylor","id":362248,"avatar_url":"https://avatars1.githubusercontent.com/u/362248?v=4","gravatar_id":"","url":"https://api.github.com/users/jarodtaylor","html_url":"https://github.com/jarodtaylor","followers_url":"https://api.github.com/users/jarodtaylor/followers","following_url":"https://api.github.com/users/jarodtaylor/following{/other_user}","gists_url":"https://api.github.com/users/jarodtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/jarodtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarodtaylor/subscriptions","organizations_url":"https://api.github.com/users/jarodtaylor/orgs","repos_url":"https://api.github.com/users/jarodtaylor/repos","events_url":"https://api.github.com/users/jarodtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/jarodtaylor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-22T22:40:02Z","updated_at":"2018-03-22T23:57:18Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\nMore of a Question, I think.\r\n\r\nHow can we use page-specific \"partials\" to break your page code up? I know that we have the components directory, but I prefer to keep that to more globally shared components (e.g. `<Button>`, `<Article>`, etc.). \r\n\r\nMy index page has a LOT of sections and I'd prefer not to dump it all in one file. \r\n\r\nI was hoping to do something like this:\r\n```\r\npages/\r\n  home/\r\n    index.jsx\r\n    partialName.jsx\r\n    partial2Name.jsx\r\n  index.jsx (exports home)\r\n```\r\nThis works, but it also still creates indices for all of the jsx files in the `home` directory.\r\n\r\nIs there a config where I can exclude that directory, or is there a better approach to this? I suppose I could create a `partials` directory, but I was really hoping to keep these files together with their given page (home, about, contact, etc).\r\n"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/375495690","html_url":"https://github.com/gatsbyjs/gatsby/issues/4660#issuecomment-375495690","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/4660","id":375495690,"user":{"login":"jquense","id":339286,"avatar_url":"https://avatars2.githubusercontent.com/u/339286?v=4","gravatar_id":"","url":"https://api.github.com/users/jquense","html_url":"https://github.com/jquense","followers_url":"https://api.github.com/users/jquense/followers","following_url":"https://api.github.com/users/jquense/following{/other_user}","gists_url":"https://api.github.com/users/jquense/gists{/gist_id}","starred_url":"https://api.github.com/users/jquense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquense/subscriptions","organizations_url":"https://api.github.com/users/jquense/orgs","repos_url":"https://api.github.com/users/jquense/repos","events_url":"https://api.github.com/users/jquense/events{/privacy}","received_events_url":"https://api.github.com/users/jquense/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T23:57:18Z","updated_at":"2018-03-22T23:57:18Z","author_association":"COLLABORATOR","body":"I wonder if we should revisit that convention for v2? It's a bit out of place in a react component world, but maybe it's reassuring or intuitive for folks coming form a different static site generator?"}}
{"actor":{"display_login":"jquense"}}