queensferryme / hugo-theme-texify

A minimal, latex-style hugo theme for personal blogging
https://texify.qufy.me
MIT License
134 stars 48 forks source link

Will you add a search function? #18

Open preminstrel opened 2 years ago

preminstrel commented 2 years ago

Hi, @queensferryme. Such tools may be helpful, such as algolia. Thanks for your time. I really appreciate your impressive work.

queensferryme commented 2 years ago

I am currrently occupied with other events, so I will look into this issue weeks later maybe.

But on a first thought, I believe you can achieve what you want by loading custom javascript codes:

https://github.com/queensferryme/hugo-theme-texify/blob/b299184532ddeb9b545d8cba481b877c6248ff01/config.toml#L69

Simply inserting an input box into the DOM and loading algolia will do, if you are familiar with javascript.

queensferryme commented 2 years ago

I am reopening this issue in case I get the time to implement this some day.