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

  1. Go to Google Search Console.
  1. Under URL prefix, enter your homepage URL.
    1. notion image
  1. Click CONTINUE.

Verify your site ownership

  1. Under “Other verification methods”, select HTML tag.
    1. notion image
  1. Copy and paste the meta tag inside <head> section of your site’s homepage.
    1. In my case, I go to blog/themes/cactus/layout/_partial/head.ejs and paste it inside the <head> section:
  1. Deploy your site to commit changes.
  1. Click VERIFY.
    1. notion image
  1. 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.
  1. Under the root directory of your Hexo project, download hexo-generator-sitemap plugin.
    1. Configure _config.yml under the root directory:
        • Add property:
          • Update url:
        1. Generate sitemap.
          1. You can see sitemap.xml file generated inside the public folder under the root directory.
        1. Deploy your site to commit changes.
        1. Add your sitemap.
          1. notion image
        1. Click SUBMIT and wait for Google crawling your site.
          1. Crawling can take anywhere from a few days to a few weeks.

        References


        © Foy Wan 2022 - 2025