Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): Fix links to shared layout component #34330

Merged
merged 2 commits into from
Jan 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/how-to/styling/global-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Globally-scoped CSS rules are declared in external `.css` stylesheets, and [CSS

## Adding global styles with a layout component

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.
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.

> **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).

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/recipes/pages-layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default function Home() {

### Additional resources

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

## Creating pages programmatically with createPage
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/recipes/styling-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import "./src/styles/global.css"

### Directions

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.
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.

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

Expand Down