Hexo Blog URL Submission to Baidu
Introduction
It is common to submit personal websites to search engines to be indexed. I have submitted my Hexo website to Google and Bing using the sitemap generated using hexo-generator-sitemap
. However, when I submitted the same sitemap to Baidu, I encountered the following problem.
After doing search, I think the error message was incorrect. Fundamentally, it was because the sitemap generated using hexo-generator-sitemap
was not supported by Baidu.
In this blog post, I would like to quickly discuss how to submit Hexo website to Baidu.
Baidu Website Submission
Sitemap Submission
There was a Hexo module hexo-generator-baidu-sitemap
which generates Hexo sitemap specifically for Baidu. However, this Hexo module has not been maintained for a while and did not seem to support Hexo 4. I personally tried it and it did not generate sitemap at all for my website.
URL Submission
In addition to sitemap submission, Baidu also allows URL submission. With the Hexo module hexo-baidu-url-submit
, I was able to submit my Hexo website URLs to Baidu automatically.
Specifically, install Hexo module the at the Hexo website root directory.
1 | $ npm install hexo-baidu-url-submit --save |
In the _config.yml
, change/add the following configurations for deployment.
1 | deploy: |
Hexo Blog URL Submission to Baidu