百度搜索

:discourse2: Summary Baidu Search is specific for Chinese sites whose users cannot use the usual Google search.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-baidu-search
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

After installing and activating the component remember also to update the js.search.search_google and js.search.or_search_google strings (from /admin/customize/site_texts) by replacing ‘Google’ with ‘Baidu’ or ‘百度’.

Parameters references

Since the documentation in English relating to the parameters used by Baidu is scarce, I leave here the two valid references I found on the net

Credits

Thanks to @david for finding the workaround to make the search work on a specific site even without using the Q6 parameter which doesn’t work properly with the search terms!

:discourse2: Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.

Last edited by @JammyDodger 2024-06-11T08:19:47Z

Check documentPerform check on document:
9 个赞

您是否知道此组件将在六月截止日期前更新还是将被移除?

我认为提出一个#功能请求是合理的。让管理员/用户设置他们喜欢的搜索引擎似乎是个好主意。

修复TC需要一个插件出口。如果团队同意,我可以提交一个PR来添加一个。

1 个赞

最近已经引入了一个现有的插件出口。
我做了一个PR:

2 个赞