boratanrikulu / eternity

A minimalist Hugo theme designed for portfolio sites.
https://eternity.bora.sh
MIT License
237 stars 78 forks source link

search using page find works well. #46

Closed gedw99 closed 9 months ago

gedw99 commented 1 year ago

am using this to do indexing and search.

code: https://github.com/CloudCannon/pagefind

the indexing runs on the server.

The search is 100% client side and supports facet based search. It’s actually wasm running in the browser that calls out to the server for the index.

For the image meta data is uses the html produced from Hugo , so there is nothing for us to change.

Dame for tags I think , but have not got to that yet.

I got it working with eternity, but need to do a little more integration before making a PR.

demo from dev: https://www.youtube.com/watch?v=74lsEXqRQys

To index just this on public:

npx pagefind --source $(EX_FSPATH)/public
gedw99 commented 1 year ago

I might have to write a small bit of js to call their wasm, in order to modify their style.

Being rust wasm it’s easy to do and manage.

boratanrikulu commented 9 months ago

[!WARNING]
This project is currently not being actively maintained.
Please do not create new issues on GitHub.