diff --git a/www/gatsby-node.js b/www/gatsby-node.js index 7ed180ebee502..8a422f59199a4 100644 --- a/www/gatsby-node.js +++ b/www/gatsby-node.js @@ -85,14 +85,19 @@ exports.createPages = async ({graphql, boundActionCreators}) => { slug.includes('community/') || slug.includes('contributing/') || slug.includes('docs/') || - slug.includes('tutorial/') + slug.includes('tutorial/') || + slug.includes('warnings/') ) { let template; if (slug.includes('blog/')) { template = blogTemplate; } else if (slug.includes('community/')) { template = communityTemplate; - } else if (slug.includes('contributing/') || slug.includes('docs/')) { + } else if ( + slug.includes('contributing/') || + slug.includes('docs/') || + slug.includes('warnings/') + ) { template = docsTemplate; } else if (slug.includes('tutorial/')) { template = tutorialTemplate; diff --git a/www/src/layouts/index.js b/www/src/layouts/index.js index ae13ca58120c5..ca2e8c9f7fb98 100644 --- a/www/src/layouts/index.js +++ b/www/src/layouts/index.js @@ -44,7 +44,9 @@ class Template extends Component { // TODO - is there a better way to check if we need we have a sidebar? let layoutHasSidebar = false; if ( - location.pathname.match(/^\/(docs|tutorial|community|blog|contributing)/) + location.pathname.match( + /^\/(docs|tutorial|community|blog|contributing|warnings)/, + ) ) { layoutHasSidebar = true; }