Skip to content
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

Blog Index Page #31

Closed
lunchboxav opened this issue Dec 26, 2020 · 1 comment
Closed

Blog Index Page #31

lunchboxav opened this issue Dec 26, 2020 · 1 comment

Comments

@lunchboxav
Copy link

lunchboxav commented Dec 26, 2020

Hi there. First of all, thank you so much for the great project. I'm using smooth doc for an upcoming project and it suits my needs. However, I have a question. I'm adding blog pages to my docs site. Implementation wise, I just add them as normal pages under a new posts directory. That works for the time being.

However, I'm trying to add a blog index page that lists down all the pages under that posts directory, but I'm unable to do so. I can't query graphql from a an .mdx file. I also tried to do it on createPage in gatsby-node.js, but it doesn't work either, because it seems like it doesn't fit the pageType asked in PageWrapper.js.

Is there any approach that I can take to reach this goal?

Thank you very much.

@gregberge
Copy link
Owner

Hello @lunchboxav, it could be a good addition to this project to have a blog section. For now I don't have a good solution except adding some method to your gatsby-*.js to try to do something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants