diff --git a/gatsby-node.js b/gatsby-node.js index 6827b7c2..8930d691 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -32,7 +32,9 @@ exports.createPages = ({ graphql, actions }) => { graphql( ` { - allMarkdownRemark { + allMarkdownRemark( + filter: { fileAbsolutePath: { regex: "/content/" } } + ) { edges { node { fields { diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index d3687b2b..f5a858be 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -54,9 +54,6 @@ export default class Sidebar extends Component { render() { const { sidebar, location } = this.props - // hacky build fix - if (sidebar !== ('concepts' || 'setup' || 'tutorials')) return null - const sidebarfile = sidebar ? require(`../../data/sidebars/${sidebar}.yml`) // eslint-disable-line : [] diff --git a/src/pages/setup.js b/src/pages/setup.js index 107ef468..8b036448 100644 --- a/src/pages/setup.js +++ b/src/pages/setup.js @@ -21,7 +21,7 @@ const SetupIndexPage = ({ data, location }) => { return ( - +
    {SetupList}
diff --git a/src/pages/tutorials.js b/src/pages/tutorials.js index 1f32110d..5981d70c 100644 --- a/src/pages/tutorials.js +++ b/src/pages/tutorials.js @@ -21,7 +21,7 @@ const TutorialsIndexPage = ({ data, location }) => { return ( - +
    {TutorialsList}