Code Monkey home page Code Monkey logo

Comments (2)

AmazingRise avatar AmazingRise commented on July 24, 2024

感谢你的支持。
刚才本人查了一番资料,又仔细考虑了一下。
对于动态网站,搜索功能很好做。但 Hugo 是一个静态网站生成器,这意味着搜索功能需要通过用 Hugo 生成 JSON + Javascript 搜索的方式实现。可惜很难做到全文搜索,对中文进行分词,还有同义词转换。用户体验大打折扣。这个的具体做法可以参考这个链接

目前本人的想法是引入正经的搜索引擎,例如 Google。利用 Google 的站内搜索,我们只要在某个合适的地方加搜索框就可以了。

不过由于本人近来有些忙碌,这个功能可能不会很快做出来,所以先加到 Todo List 里面啦。
同时也欢迎 Pull Request。

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on July 24, 2024

Added Google Custom Search Engine in the latest commit.
See this for details.

from hugo-theme-diary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.