Hexo SEO Optimization for Baidu and Google
Hexo SEO Optimization
First, install the sitemap generators:
1 | |
Then add the following configuration to your _config.yml:
1 | |
Restart Hexo, and you should see sitemap.xml and baidusitemap.xml generated in your public folder.

Verification
Next, submit your site to Baidu and Google Search Console. You’ll need to verify ownership.
Google verification (URL prefix method recommended):
Baidu verification:
Both platforms usually provide an HTML meta tag or verification file. If using the meta tag, add it to your theme’s head.ejs file.

Submitting Sitemaps
Baidu
Go to the Link Submission section and submit your sitemap URL. Also check the “Crawl Diagnosis” tool.

HTTPS certification usually takes a couple of days.

Similar to Baidu, verify ownership and then submit your sitemap URL in the Search Console.