diff --git a/packages/gatsby-theme-carbon/src/components/Layout.js b/packages/gatsby-theme-carbon/src/components/Layout.js index f85e57c89..dca25721e 100644 --- a/packages/gatsby-theme-carbon/src/components/Layout.js +++ b/packages/gatsby-theme-carbon/src/components/Layout.js @@ -10,7 +10,13 @@ import Container from './Container'; import '../styles/index.scss'; -const Layout = ({ children, homepage, shouldHideHeader, ...rest }) => { +const Layout = ({ + children, + homepage, + shouldHideHeader, + pageTitle, + ...rest +}) => { const is404 = children.key === null; useLayoutEffect(() => { @@ -27,7 +33,7 @@ const Layout = ({ children, homepage, shouldHideHeader, ...rest }) => { return ( <> - +
{ +const Meta = ({ title: pageTitle }) => { const { title, description, keywords } = useMetadata(); return ( { const currentTab = getCurrentTab(); return ( - +