Skip to content

Commit 7578d71

Browse files
seanparmeleegatsbybot
and
gatsbybot
authored
chore(docs): Fix links to shared layout component (#34330)
Co-authored-by: gatsbybot <[email protected]>
1 parent 540484d commit 7578d71

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/docs/how-to/styling/global-css.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Globally-scoped CSS rules are declared in external `.css` stylesheets, and [CSS
88

99
## Adding global styles with a layout component
1010

11-
The best way to add global styles is with a [shared layout component](/docs/tutorial/part-3/#your-first-layout-component). This layout component is used for things that are shared throughout the site, including styles, header components, and other common items.
11+
The best way to add global styles is with a [shared layout component](/docs/tutorial/part-2/#create-a-reusable-layout-component). This layout component is used for things that are shared throughout the site, including styles, header components, and other common items.
1212

1313
> **NOTE:** This pattern is implemented by default in [the default starter](https://github.com/gatsbyjs/gatsby-starter-default/blob/063978d59f74103da45d5880a61ebd2e77798e3c/src/components/layout.js#L13).
1414

docs/docs/recipes/pages-layouts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export default function Home() {
153153

154154
### Additional resources
155155

156-
- Create a layout component in [tutorial part three](/docs/tutorial/part-3/#your-first-layout-component)
156+
- Create a layout component in [tutorial part three](/docs/tutorial/part-2/#create-a-reusable-layout-component)
157157
- Styling with [Layout Components](/docs/how-to/routing/layout-components/)
158158

159159
## Creating pages programmatically with createPage

docs/docs/recipes/styling-css.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import "./src/styles/global.css"
5050

5151
### Directions
5252

53-
You can add global styles to a [shared layout component](/docs/tutorial/part-3/#your-first-layout-component). This component is used for things that are common throughout the site, like a header or footer.
53+
You can add global styles to a [shared layout component](/docs/tutorial/part-2/#create-a-reusable-layout-component). This component is used for things that are common throughout the site, like a header or footer.
5454

5555
1. If you don't already have one, create a new directory in your site at `/src/components`.
5656

0 commit comments

Comments
 (0)