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
Using this as an extension #37
Comments
You can! It's not as straightforward as it should be right now since you need to filter the way they're querying MDX files, but you can add it to that starter with the following steps: Add dependency
Add a note
And then edit
fbAppID: '',
},
},
+ __experimentalThemes: [
+ {
+ resolve: 'gatsby-theme-digital-garden',
+ options: {
+ mdx: false
+ }
+ }
+ ],
plugins: [
{
resolve: 'gatsby-source-filesystem',
@@ -72,8 +72,9 @@ exports.createPages = ({ actions, graphql }) =>
}
const { edges } = data.allMdx
+ const posts = edges.filter(edge => edge.node.parent.sourceInstanceName === 'posts')
const { createRedirect, createPage } = actions
- createPosts(createPage, createRedirect, edges)
+ createPosts(createPage, createRedirect, posts)
createPaginatedPages(actions.createPage, edges, '/blog', {
categories: [],
}) There are also some missing pieces on digital-garden's end for heading config for links, but you will now be able to navigate to |
@johno You are the best ... I’ll try this in a little bit I’ll close the issue if it works fine (it should as you basically did everything for me)! |
@johno An issue: when I query for the blog posts, the notes show up as well. Do you know how to fix this? Also, how to you set the layout that you want to use for the note pages? |
@johnletey as @johno described originally, the query in the egghead starter is for For the layout, you can shadow the note page by creating a file in your site at |
@ChristopherBiscardi Trying this out now ... thanks for the advice! |
When we replace the internals for the notes/blogs this will fix itself since they will introduce their own custom types. See #58 |
As I'm a starter with Gatsby, this may be a stupid question: I was wondering if I can somehow incorporate this into eggheadio/gatsby-starter-egghead-blog?
The text was updated successfully, but these errors were encountered: