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

2023/10/17/Fixed%20the%20broken%20search%20in%20nextjs-notion-starter-kit/ #20

Open
danni-cool opened this issue Nov 3, 2023 · 11 comments

Comments

@danni-cool
Copy link
Owner

danni-cool commented Nov 3, 2023

Fixed the broken search in nextjs-notion-starter-kit - Danni.cool - Daniel's Blog

If your nextjs-notion-starter-kit is v2.0.0 and broken in search

https://danni.cool/2023/10/17/Fixed%20the%20broken%20search%20in%20nextjs-notion-starter-kit/

Copy link

In your case, the correct command is 'yarn add patch-package

Copy link
Owner Author

@huiboxes exactly.

Copy link

thank u~it helps me a lot😃

@danni-cool
Copy link
Owner Author

@Juno65juno1 :)

Copy link

bluexg7 commented Jan 21, 2024

Good job ! And do you have article to introduce how to add comment function on this blog website?

Copy link
Owner Author

danni-cool commented Jan 21, 2024

@bluexg7 I don't have immediate plans to write about this, but I use https://github.com/krasimir/octomments on my website. Note that you'll still need additional development to integrate it fully with the Notion-Starter-Kit.

Copy link

Cuctut commented Mar 13, 2024

A super great article!! Thank you for your help!!
I want to know how to integrate this comment plugin like you do, because it doesn't seem to have a typescript version.

@danni-cool
Copy link
Owner Author

danni-cool commented Mar 13, 2024

@Cuctut JS works fine in a TS environment; just define a prop in tsconfig.json as "allowJs": true. What I did was clone all the files from octomments into the Notion-Starter-Kit and integrate it as a self-contained component. This provides you with ample operational flexibility.

  1. octomments requires creating GitHub issues to display your blog comments with your GitHub token, so you need to develop an additional API on the server side.
  2. When you render a new article, you should check if the article's comments exist. If not, use your created comments API from step 1 and write it to this Notion article's property.

Copy link

Cuctut commented Mar 14, 2024

@danni-cool I am a beginner in this field, and I know what you mean, but I don't know how to operate it specifically. TvT

@danni-cool danni-cool changed the title Comments Of the Post 《Fixed the broken search in nextjs-notion-starter-kit》 2023/10/17/Fixed%20the%20broken%20search%20in%20nextjs-notion-starter-kit/ May 6, 2024
Copy link
Owner Author

Hello everyone! I've decided to abandon the Next.js Notion starter kit for my website. Instead, I recommend trying out the solution of Notion + Elog + Hexo. It allows for easy DIY and offers better page speed. I'll write an article to introduce it next time!

Copy link

Hello @danni-cool, thank you for this guide! I am curious if you have moved to Notion + Elog + Hexo?

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

6 participants