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

refactor(www): Reorganize plugin pages layout #21337

Merged
merged 1 commit into from
Feb 10, 2020
Merged

refactor(www): Reorganize plugin pages layout #21337

merged 1 commit into from
Feb 10, 2020

Conversation

tesseralis
Copy link
Contributor

Description

Reorganize the way the plugin pages/templates use layouts:

  • Use @loadable/component instead of our custom thing
  • Get rid of the custom logic in gatsby-node and layouts/index.js
  • Import and directly in the the plugin pages/templates

@tesseralis tesseralis requested a review from a team as a code owner February 10, 2020 09:07
@tesseralis tesseralis changed the title Reorganize plugin pages layout refactor (www) Reorganize plugin pages layout Feb 10, 2020
)
}
return <>{props.children}</>
export default function Layout({ children }) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could delete this file, but we're going to move src/components/Layout here.

Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love these. Thank you for cleaning up gatsbyjs.org as much as you are! 🙏

@sidharthachatterjee sidharthachatterjee changed the title refactor (www) Reorganize plugin pages layout refactor(www): Reorganize plugin pages layout Feb 10, 2020
@sidharthachatterjee sidharthachatterjee added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Feb 10, 2020
@gatsbybot gatsbybot merged commit 63711b2 into gatsbyjs:master Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants