danni-cool / my-blog

my blog posts and comments
https://danni.cool/
0 stars 0 forks source link

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

Open danni-cool opened 11 months ago

danni-cool commented 11 months ago

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/

huiboxes commented 10 months ago

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

danni-cool commented 10 months ago

@huiboxes exactly.

Juno65juno1 commented 8 months ago

thank u~it helps me a lot😃

danni-cool commented 8 months ago

@Juno65juno1 :)

bluexg7 commented 8 months ago

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

danni-cool commented 8 months ago

@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.

Cuctut commented 6 months ago

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 commented 6 months ago

@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.
Cuctut commented 6 months ago

@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 commented 5 months ago

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!

YesYouKenSpace commented 1 month ago

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