How to show Hexo blog on Google search
date
Aug 16, 2022
slug
show-hexo-blog-on-google-search
status
Published
tags
Hexo
Tutorial
summary
type
Post
Add a website property to Search Console
- Go to Google Search Console.
- Under URL prefix, enter your homepage URL.

- Click CONTINUE.
Verify your site ownership
- Under “Other verification methods”, select HTML tag.

- Copy and paste the meta tag inside
<head>
section of your site’s homepage.
In my case, I go to
blog/themes/cactus/layout/_partial/head.ejs
and paste it inside the <head>
section:- Deploy your site to commit changes.
- Click VERIFY.

- Click GO TO PROPERTY.
Submit your sitemap to Google
A sitemap is a file that lists all of the pages of a website and how they’re related to each other.
- Under the root directory of your
Hexo
project, downloadhexo-generator-sitemap
plugin.
- Configure
_config.yml
under the root directory: - Add property:
- Update url:
- Generate sitemap.
You can see
sitemap.xml
file generated inside the public
folder under the root directory.- Deploy your site to commit changes.
- Add your sitemap.

- Click SUBMIT and wait for Google crawling your site.
Crawling can take anywhere from a few days to a few weeks.