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

search from content #199

Open
fragrant10 opened this issue May 15, 2021 · 4 comments
Open

search from content #199

fragrant10 opened this issue May 15, 2021 · 4 comments

Comments

@fragrant10
Copy link

Thks. I like this theme very much.

Will you update the function of search? Now It can search from the "title" only, Right? Maybe search from "content" is greater.

@g1eny0ung
Copy link
Owner

The current search implementation is simple. I just saved all post titles into a JSON file and retrieve them when searching.

For supporting content searching, this method will no longer be applicable. I think I should ingrate algolia to implement it.

@Darthagnon
Copy link
Contributor

NB. Algolia is an external service/API which will break or go commercial one day. I hope the current system remains an option.

Hugo theme Stack uses some sort of in-browser search, which might be implemented differently:
https://github.com/CaiJimmy/hugo-theme-stack

@g1eny0ung
Copy link
Owner

NB. Algolia is an external service/API which will break or go commercial one day. I hope the current system remains an option.

Hugo theme Stack uses some sort of in-browser search, which might be implemented differently:
https://github.com/CaiJimmy/hugo-theme-stack

I will see how it is done.

@stale
Copy link

stale bot commented Aug 31, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

3 participants