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/tutorial/part-1/index.mdx
+8-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ import { MdArrowForward } from 'react-icons/md'
10
10
11
11
Now that you've set up your computer with all the tools you'll need, it's time to get started!
12
12
13
-
Over the course of this Tutorial, you'll build and deploy your first Gatsby site: a blog site with support for images and MDX! (If that doesn't mean anything to you now, that's okay! It will by the time you reach the end.) Here's a [finished example](https://introworkshopexamplesitev3.gatsbyjs.io/) of the site you'll build.
13
+
Over the course of this Tutorial, you'll build and deploy your first Gatsby site: a blog site with support for images and MDX! (If that doesn't mean anything to you now, that's okay! It will by the time you reach the end.) Here's a [finished example](https://gatsbytutorialexample.gatsbyjs.io/) of the site you'll build. You can also follow along with the [GitHub repository for the finished example](https://github.com/gatsbyjs/tutorial-example).
14
14
15
15
In this part of the Tutorial, you will go through the process of creating the template for your blog site and deploying it online for everyone to see.
16
16
@@ -316,6 +316,13 @@ First, you write the code for your Gatsby site from your computer. When you're r
316
316
317
317
</Collapsible>
318
318
319
+
### Key takeaways
320
+
321
+
* To create a new Gatsby site from the command line, you can run the `gatsby new` command.
322
+
* To run your site locally, use the `gatsby develop` command. You can view your site in a web browser at `localhost:8000`.
323
+
* Gatsby Cloud is an infrastructure platform specifically optimized for building, deploying, and hosting Gatsby sites.
324
+
* When you push a new commit to the `main` branch of the GitHub repository for your site, Gatsby Cloud will detect the changes, rebuild a new version of your site, and then redeploy it.
Copy file name to clipboardExpand all lines: docs/docs/tutorial/part-2/index.mdx
+8-2
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ You can also create components from other components. For example, you might dec
51
51
52
52
**Try it!**
53
53
54
-
Look back at the [finished example blog site](https://introworkshopexamplesitev3.gatsbyjs.io). How might you break down the pages into components?
54
+
Look back at the [finished example blog site](https://gatsbytutorialexample.gatsbyjs.io/). How might you break down the pages into components?
55
55
56
56
Not sure where to start? Look for parts of the UI that repeat within a page or across multiple pages.
57
57
@@ -387,7 +387,7 @@ export default AboutPage
387
387
388
388
## Create a reusable layout component
389
389
390
-
If you take another look at the [finished example blog](https://introworkshopexamplesitev3.gatsbyjs.io), you might notice that there are some repeated parts of the UI across each page, like the site title and the navigation menu.
390
+
If you take another look at the [finished example blog](https://gatsbytutorialexample.gatsbyjs.io/), you might notice that there are some repeated parts of the UI across each page, like the site title and the navigation menu.
391
391
392
392
You could copy those elements into each page of your site separately. But imagine your site had dozens (or even thousands) of pages. If you wanted to make a change to the structure of your navigation menu, you'd have to go and update every one of those files separately. Yuck.
393
393
@@ -758,6 +758,12 @@ Luckily, when you use CSS Modules with Gatsby, you can have both! Your kebab-cas
758
758
759
759

760
760
761
+
<Announcement style={{marginBottom: "1.5rem"}}>
762
+
763
+
**Want to see how it all fits together?** Check out the commit history in the [GitHub repo for the finished example site](https://github.com/gatsbyjs/tutorial-example).
764
+
765
+
</Announcement>
766
+
761
767
## Summary
762
768
763
769
Congratulations, you've made it to the end of Part 2! 🥳 (That was a long one!)
Copy file name to clipboardExpand all lines: docs/docs/tutorial/part-3/index.mdx
+6
Original file line number
Diff line number
Diff line change
@@ -245,6 +245,12 @@ export default IndexPage
245
245
246
246

247
247
248
+
<Announcement style={{marginBottom:"1.5rem"}}>
249
+
250
+
**Want to see how it all fits together?** Check out the commit history in the [GitHub repo for the finished example site](https://github.com/gatsbyjs/tutorial-example).
251
+
252
+
</Announcement>
253
+
248
254
## Summary
249
255
250
256
Take a moment to think back on what you've learned so far. Challenge yourself to answer the following questions from memory:
Copy file name to clipboardExpand all lines: docs/docs/tutorial/part-4/index.mdx
+6
Original file line number
Diff line number
Diff line change
@@ -846,6 +846,12 @@ Good job! You've finished the first step of your new blog page.
846
846
847
847
You won't be able to render the contents of your posts just yet, since your site doesn't know how to process MDX. You'll fix that in the next part of the Tutorial!
848
848
849
+
<Announcementstyle={{marginBottom: "1.5rem"}}>
850
+
851
+
**Want to see how it all fits together?** Check out the commit history in the [GitHub repo for the finished example site](https://github.com/gatsbyjs/tutorial-example).
852
+
853
+
</Announcement>
854
+
849
855
## Summary
850
856
851
857
Take a moment to think back on what you've learned so far. Challenge yourself to answer the following questions from memory:
Copy file name to clipboardExpand all lines: docs/docs/tutorial/part-5/index.mdx
+6
Original file line number
Diff line number
Diff line change
@@ -581,6 +581,12 @@ export default BlogPage
581
581
582
582
Nice work! Your site now has a blog page with actual content.
583
583
584
+
<Announcementstyle={{marginBottom: "1.5rem"}}>
585
+
586
+
**Want to see how it all fits together?** Check out the commit history in the [GitHub repo for the finished example site](https://github.com/gatsbyjs/tutorial-example).
587
+
588
+
</Announcement>
589
+
584
590
## Summary
585
591
586
592
Take a moment to think back on what you've learned so far. Challenge yourself to answer the following questions from memory:
Copy file name to clipboardExpand all lines: docs/docs/tutorial/part-6/index.mdx
+8-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ By the end of this part of the Tutorial, you will be able to:
23
23
24
24
**Prefer a video?**
25
25
26
-
If you'd rather follow along with a video, here's a recording of a livestream that covers all the material for Part 5.
26
+
If you'd rather follow along with a video, here's a recording of a livestream that covers all the material for Part 6.
27
27
28
28
You can catch the stream live on Wednesdays at 10AM Pacific Time / 5PM UTC on the [Gatsby Twitch channel](https://www.twitch.tv/gatsbyjs).
29
29
@@ -534,6 +534,13 @@ The last step of Part 6 is to clean up your Blog page. Instead of rendering the
534
534
535
535
Congratulations, you now have a multi-page blog site! Try adding some new `.mdx` files to your top-level `blog` directory. They should get added to your Blog page automatically when your site rebuilds!
536
536
537
+
<Announcementstyle={{marginBottom: "1.5rem"}}>
538
+
539
+
**Want to see how it all fits together?** Check out the commit history in the [GitHub repo for the finished example site](https://github.com/gatsbyjs/tutorial-example).
540
+
541
+
</Announcement>
542
+
543
+
537
544
## Summary
538
545
539
546
Take a moment to think back on what you've learned so far. Challenge yourself to answer the following questions from memory:
Copy file name to clipboardExpand all lines: docs/docs/tutorial/part-7/index.mdx
+24-3
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,19 @@ By the end of this part of the Tutorial, you will be able to:
16
16
17
17
- Use the `GatsbyImage` component to create images dynamically from data.
18
18
19
+
<Announcementstyle={{marginBottom: "1.5rem"}}>
20
+
21
+
**Prefer a video?**
22
+
23
+
If you'd rather follow along with a video, here's a recording of a livestream that covers all the material for Part 7.
24
+
25
+
You can catch the stream live on Wednesdays at 10AM Pacific Time / 5PM UTC on the [Gatsby Twitch channel](https://www.twitch.tv/gatsbyjs).
26
+
27
+
<iframewidth="560"height="315"src="https://www.youtube.com/embed/NQj3H2Z9vn0?start=229"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"allowfullscreen></iframe>
28
+
29
+
</Announcement>
30
+
31
+
19
32
## What's the difference between `GatsbyImage` and `StaticImage`?
20
33
21
34
Back in [Part 3](/docs/tutorial/part-3/) of the Tutorial, you learned about how to use the `StaticImage` component from `gatsby-plugin-image`.
@@ -55,6 +68,7 @@ The steps below will help you find and download some photos for your hero images
55
68

56
69
57
70
2. When you've found a photo that you like, download it and add it to subdirectory for one of your blog posts. Continue downloading photos until you have a different hero image for each post.
71
+

58
72
59
73
<Announcementstyle={{marginBottom: "1.5rem"}}>
60
74
@@ -344,8 +358,8 @@ Once you have your GraphQL query set up, you can to add it to your blog post pag
@@ -485,6 +499,13 @@ Try removing the `{" "}` and see what happens. The paragraph text should end up
485
499
486
500

487
501
502
+
<Announcementstyle={{marginBottom: "1.5rem"}}>
503
+
504
+
**Want to see how it all fits together?** Check out the commit history in the [GitHub repo for the finished example site](https://github.com/gatsbyjs/tutorial-example).
505
+
506
+
</Announcement>
507
+
508
+
488
509
## Summary
489
510
490
511
Take a moment to think back on what you've learned so far. Challenge yourself to answer the following questions from memory:
0 commit comments