MeiK2333 / github-style

https://themes.gohugo.io/themes/github-style
MIT License
579 stars 187 forks source link

本地部署后用顶部栏的搜索,跳转到谷歌去了,我想在我本地或者本站点进行搜索 #112

Open hanshoukai opened 2 years ago

hanshoukai commented 2 years ago

麻烦这个问题要怎么修改呢?多谢多谢

MeiK2333 commented 2 years ago

作为纯静态的页面,这个项目本身是无法提供这个功能的,不过你可以看一下网上已有的解决方案

kurt-liao commented 2 years ago

Hi @hanshoukai,

Hope it's not too late.

I've implement local search feature in my fork version: https://github.com/kurt-liao/github-style-plus

Since I'd like this theme so much(thanks @MeiK2333 ) and want more features, so this fork version created.

It's in the very beginning, the documentation is not complete though. You can see the demo first: ezgif com-gif-maker

Feel free to try it on my site: https://blog.kurtstories.com/

The source code is in script.html file, you can take a look for it if you're curious how it implement. Since it's in the beginning that I've mentioned, there's no optimize, no refactor at that code yet. Any suggestion, contributions are welcome.