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 bar #74

Open
kreatoo opened this issue Apr 26, 2024 · 3 comments
Open

Search bar #74

kreatoo opened this issue Apr 26, 2024 · 3 comments

Comments

@kreatoo
Copy link

kreatoo commented Apr 26, 2024

Would be nice if there is a way to implement a search bar into this.

@joeroe
Copy link
Owner

joeroe commented Apr 26, 2024

There are several ways of adding search to a Hugo site listed here: https://gohugo.io/tools/search/

We could build one into the theme directly (making it optional, of course), but having never tried it myself I'm not sure which option to choose. It would also significantly complicate the instructions by adding an external dependency and an extra step in the build process. My gut instinct is this isn't worth it, but I'm open to being convinced...

@kreatoo
Copy link
Author

kreatoo commented Apr 27, 2024

There are several ways of adding search to a Hugo site listed here: https://gohugo.io/tools/search/

We could build one into the theme directly (making it optional, of course), but having never tried it myself I'm not sure which option to choose. It would also significantly complicate the instructions by adding an external dependency and an extra step in the build process. My gut instinct is this isn't worth it, but I'm open to being convinced...

Some themes like Hextra seem to be able to do it (using Flexsearch) without additional instructions. I don't know how they do it though.

I honestly think its worth it as it would make finding material easier, both in blogs and documentation type sites.

@saurabh-sm
Copy link

Another example is the Paige theme

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

3 participants