{"action":"opened","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9942","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9942/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9942/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/9942/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/9942","id":381098975,"node_id":"MDU6SXNzdWUzODEwOTg5NzU=","number":9942,"title":"createPages with 2 queries but same template in Gatsby","user":{"login":"Steffi3rd","id":814410,"node_id":"MDQ6VXNlcjgxNDQxMA==","avatar_url":"https://avatars0.githubusercontent.com/u/814410?v=4","gravatar_id":"","url":"https://api.github.com/users/Steffi3rd","html_url":"https://github.com/Steffi3rd","followers_url":"https://api.github.com/users/Steffi3rd/followers","following_url":"https://api.github.com/users/Steffi3rd/following{/other_user}","gists_url":"https://api.github.com/users/Steffi3rd/gists{/gist_id}","starred_url":"https://api.github.com/users/Steffi3rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Steffi3rd/subscriptions","organizations_url":"https://api.github.com/users/Steffi3rd/orgs","repos_url":"https://api.github.com/users/Steffi3rd/repos","events_url":"https://api.github.com/users/Steffi3rd/events{/privacy}","received_events_url":"https://api.github.com/users/Steffi3rd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-15T10:36:21Z","updated_at":"2018-11-15T10:36:21Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  To make it easier for us to help you, please include as much useful information as possible.\r\n\r\n  Useful Links:## Summary\r\n\r\nHi, \r\n\r\nI have 2 queries because it's different type of post. But I would like to use the same template but structured is the same.\r\n\r\nIs there a way to do this? \r\n\r\nThe only way I found is to create new template for each type...\r\n<img width=\"427\" alt=\"capture d ecran 2018-11-15 a 11 15 38\" src=\"https://user-images.githubusercontent.com/814410/48546918-c4a4b800-e8c9-11e8-9c38-cb27f342f868.png\">\r\n\r\nI have this : \r\n\r\n```\r\n  pages.data.allPrismicInfographic.edges.forEach(edge => {\r\n    createPage({\r\n      path: `/${edge.node.uid}`,\r\n      component: template,\r\n      context: {\r\n        uid: edge.node.uid,\r\n      },\r\n    })\r\n  })\r\n\r\n```\r\n<img width=\"580\" alt=\"capture d ecran 2018-11-15 a 11 18 37\" src=\"https://user-images.githubusercontent.com/814410/48546937-ce2e2000-e8c9-11e8-82bb-6806632004e9.png\">\r\n\r\n\r\n### Environment (if relevant)\r\n\r\n```\r\ngatsby info --clipboard\r\n \r\n  System:\r\n    OS: macOS 10.14\r\n    CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz\r\n    Shell: 3.2.57 - /bin/bash\r\n  Binaries:\r\n    Node: 8.12.0 - /usr/local/bin/node\r\n    npm: 6.4.1 - /usr/local/bin/npm\r\n  Browsers:\r\n    Chrome: 70.0.3538.102\r\n    Safari: 12.0\r\n  npmPackages:\r\n    gatsby: ^2.0.24 => 2.0.43 \r\n    gatsby-image: ^2.0.15 => 2.0.20 \r\n    gatsby-plugin-lodash: ^3.0.1 => 3.0.2 \r\n    gatsby-plugin-manifest: ^2.0.5 => 2.0.8 \r\n    gatsby-plugin-offline: ^2.0.6 => 2.0.13 \r\n    gatsby-plugin-react-helmet: ^3.0.0 => 3.0.1 \r\n    gatsby-plugin-sharp: ^2.0.7 => 2.0.12 \r\n    gatsby-plugin-sitemap: ^2.0.1 => 2.0.2 \r\n    gatsby-plugin-styled-components: ^3.0.1 => 3.0.1 \r\n    gatsby-source-prismic: ^2.0.0 => 2.1.0 \r\n    gatsby-transformer-sharp: ^2.1.4 => 2.1.8 \r\n  npmGlobalPackages:\r\n    gatsby-cli: 2.4.5\r\n\r\n```\r\n### File contents (if changed)\r\n\r\n`gatsby-config.js`: N/A <!-- Please use a code block or just leave it as is if wasn't changed -->\r\n`package.json`: N/A <!-- Please use a code block or just leave it as is if wasn't changed -->\r\n`gatsby-node.js`: N/A <!-- Please use a code block or just leave it as is if wasn't changed -->\r\n`gatsby-browser.js`: N/A <!-- Please use a code block or just leave it as is if wasn't changed -->\r\n`gatsby-ssr.js`: N/A <!-- Please use a code block or just leave it as is if wasn't changed -->\r\n\r\n  - Documentation: https://www.gatsbyjs.org/docs/\r\n\r\n  Gatsby has several community support channels, try asking your question on:\r\n\r\n  - Discord: https://discord.gg/0ZcbPKXt5bVoxkfV\r\n  - Spectrum: https://spectrum.chat/gatsby-js\r\n  - Twitter: https://twitter.com/gatsbyjs\r\n\r\n  Before opening a new issue, please search existing issues https://github.com/gatsbyjs/gatsby/issues\r\n-->\r\n\r\n## Summary\r\n\r\n## Relevant information\r\n\r\n<!-- Provide as much useful information as you can -->\r\n\r\n### Environment (if relevant)\r\n\r\n<!--\r\n  Required. Run `gatsby info --clipboard` in your gatsby project directory and paste its contents here.\r\n  Not working? You may need to update your global gatsby-cli - `npm install -g gatsby-cli`\r\n-->\r\n\r\n### File contents (if changed)\r\n\r\n`gatsby-config.js`: N/A <!-- Please use a code block or just leave it as is if wasn't changed -->\r\n`package.json`: N/A <!-- Please use a code block or just leave it as is if wasn't changed -->\r\n`gatsby-node.js`: N/A <!-- Please use a code block or just leave it as is if wasn't changed -->\r\n`gatsby-browser.js`: N/A <!-- Please use a code block or just leave it as is if wasn't changed -->\r\n`gatsby-ssr.js`: N/A <!-- Please use a code block or just leave it as is if wasn't changed -->\r\n"}}
{"actor":{"display_login":"Steffi3rd"}}