dragonman225 / notablog

Tell stories of your work with Notion
https://dragonman225.js.org/notablog.html
MIT License
667 stars 80 forks source link

Search function #42

Open Peco602 opened 2 years ago

Peco602 commented 2 years ago

Would it be possible to add a search function for posts?

dragonman225 commented 2 years ago

I think it's possible, but it could involve a lot of work.

To keep generated sites being able to be hosted statically (e.g. with Github Pages), I imagine we would need Notablog to produce a search index file out of the data fetched from Notion, let people host that file with their sites, and in the frontend (theme) we write a script to fetch the search index file and perform search.