Skip to content

Commit 1d6d9f7

Browse files
authored
Make code blocks jsx
1 parent 59e6e5d commit 1d6d9f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/adding-a-list-of-markdown-blog-posts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Has anyone heard about GatsbyJS yet?
2222

2323
The first step will be to create the page which will display your posts, in `src/pages/`. You can for example use `index.js`.
2424

25-
```js
25+
```jsx
2626
import React from "react";
2727
import PostLink from "../components/post-link";
2828

@@ -41,7 +41,7 @@ export default IndexPage;
4141

4242
Second, you need to provide the data to your component with a GraphQL query. Let's add it, so that `index.js` looks like this:
4343

44-
```js
44+
```jsx
4545
import React from "react";
4646
import PostLink from "../components/post-link";
4747

@@ -78,7 +78,7 @@ export const pageQuery = graphql`
7878

7979
The only thing left to do is to add the `PostLink` component. Create a new file `post-link.js` in `src/components/` and add the following:
8080

81-
```js
81+
```jsx
8282
import React from "react";
8383
import Link from "gatsby-link";
8484

0 commit comments

Comments
 (0)