Baidu search support for Hexo.

Usage no npm install needed!

<script type="module">
  import hexoGeneratorBaidusearch from 'https://cdn.skypack.dev/hexo-generator-baidusearch';



This hexo plugin generates a xml file that can be crawled to enable Baidu custom serach.


npm install --save hexo-generator-baidusearch


The sad fact is that Github actively blocked Baidu spider due to a historical incident when a Baidu service is hijacked to DDOS the several github services. If your website is hosted with Github Pages, you will need to create a mirror repository and provide the mirror link to Baidu.

Coding.net is a good choice here. Just create a repository there, setup a subdomain and configure your Hexo blog to deploy to both your github repo and coding.net repo, problem solved.


No specific action needed, just run:

hexo generate
hexo deploy