diff --git a/docs/docs/migrating-from-v1-to-v2.md b/docs/docs/migrating-from-v1-to-v2.md index 1fe177159a31e..546a34a6cc17c 100644 --- a/docs/docs/migrating-from-v1-to-v2.md +++ b/docs/docs/migrating-from-v1-to-v2.md @@ -2,6 +2,8 @@ title: Migrating from v1 to v2 --- +Looking for the v1 docs? [Find them here](https://v1.gatsbyjs.org/). + > This document is a work in progress. Have you upgraded your site and run into something that's not covered here? [Add your changes on GitHub](https://github.com/gatsbyjs/gatsby/edit/master/docs/docs/migrating-from-v1-to-v2.md)! ## Introduction diff --git a/www/src/components/banner.js b/www/src/components/banner.js index b8b8dd8ca6371..fb06c1029233f 100644 --- a/www/src/components/banner.js +++ b/www/src/components/banner.js @@ -51,29 +51,12 @@ const Link = styled(`a`)` const Banner = ({ children, background }) => ( - - {children ? ( - {children} - ) : ( - - These are the docs for v2. - {` `} - - View the v1 docs - - {` `} - instead - - - . - - )} - + {children && {children}} ) Banner.propTypes = { - children: PropTypes.node, + children: PropTypes.node.isRequired, background: PropTypes.any, } diff --git a/www/src/components/layout.js b/www/src/components/layout.js index beff9ecfb47b4..463c5dd90bc5c 100644 --- a/www/src/components/layout.js +++ b/www/src/components/layout.js @@ -150,28 +150,18 @@ class DefaultLayout extends React.Component { Skip to main content - These are the docs for v2. - {` `} - View the v1 docs - - {` `} - instead - + Register now - . + {` for “Rise of the Content Mesh: Webcast with Contentful and Gatsby”.`}