You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/creating-and-modifying-pages.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Pages can be created in three ways:
8
8
9
9
- In your site's gatsby-node.js by implementing the API
10
10
[`createPages`](/docs/node-apis/#createPages)
11
-
- Gatsby core automatically turns React components in `src/pages` into pages
11
+
- Gatsby core automatically turns React components in `src/pages/*` into pages. Note that you must make the component the [default export](https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export)
12
12
- Plugins can also implement `createPages` and create pages for you
13
13
14
14
You can also implement the API [`onCreatePage`](/docs/node-apis/#onCreatePage)
@@ -17,8 +17,8 @@ to modify pages created in core or plugins or to create [client-only routes](/do
17
17
## Debugging help
18
18
19
19
To see what pages are being created by your code or plugins, you can query for
20
-
page information while developing in Graph_i_QL. Paste the following query in
21
-
the Graph_i_QL IDE for your site. The Graph_i_QL IDE is available when running
20
+
page information while developing in Graph<em>i</em>QL. Paste the following query in
21
+
the Graph<em>i</em>QL IDE for your site. The Graph<em>i</em>QL IDE is available when running
22
22
your sites development server at `HOST:PORT/___graphql` e.g.
23
23
`http://localhost:8000/___graphql`.
24
24
@@ -39,7 +39,7 @@ your sites development server at `HOST:PORT/___graphql` e.g.
39
39
}
40
40
```
41
41
42
-
The `context` property accepts an object, and we can pass in any data we want the page to be able to access.
42
+
The `context` property accepts an object, and you can pass in any data you want the page to be able to access.
43
43
44
44
You can also query for any `context` data you or plugins added to pages.
0 commit comments