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

Could you provide boilerplate code for importing posts #5

Closed
Isaac-Tait opened this issue Dec 21, 2022 · 2 comments
Closed

Could you provide boilerplate code for importing posts #5

Isaac-Tait opened this issue Dec 21, 2022 · 2 comments

Comments

@Isaac-Tait
Copy link

I am not familiar with Astro so I am unsure how to proceed with the boilerplate code to import the blog posts from my Notion Table into the index.astro file located in src. The Notion docs has the code for .js not .astro so that will not work for this use case unfortunately.

Thanks for putting this site together, it has a lot of promise!

Here is my repo of what I have so far...

@jcha0713
Copy link
Owner

jcha0713 commented Dec 21, 2022

Hi,

Sorry if the readme is not easy enough to follow. There's a demo project in this repo which is a minimal working version of astro-notion blog, so you might want to check that out.

If you're not familiar with Astro, I recommend reading the dynamic routes section from the doc first, and then it'll be much easier to set things up.

Also please note that I'm (slowly) re-writing the library as there have been lots of updates in Astro.

Let me know if you have any other questions. Thanks!

@Isaac-Tait
Copy link
Author

Thank you for your prompt reply @jcha0713 and suggestions too! It is starting to make a lot more sense now. Cheers! 😎

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

No branches or pull requests

2 participants