Migrate blog homepage

Migrate blog homepage

I want to migrate my blog homepage from dyliu0312.github.io to sub page (or folder), e.g. dyliu0312.github.io/blog/, so that I can use that domain name for my personal website (and also blog).

1. Rename the github repository

  • Navigate to blog repository on GitHub

  • Go to the “Settings” tab.

  • Under the “General” section, find the “Repository name” field and click “Rename”.

  • Enter the new name, e.g. blog.github.io, and click “Rename”.

2. Change the repository URL in the _config.yml file

  • Open the _config.yml file in the root directory of your Hexo blog.

  • Locate the url field and change it to the new URL, e.g. https://dyliu0312.github.io/blog.github.io/.

  • Locate the deployment section and change the repo field to the new repository URL, e.g. https://github.com/dyliu0312/blog.github.io.git.

  • Save the changes and commit.

    1
    2
    3
    hexo clean
    hexo g
    hexo d

Reference

  • Google Gemini

Migrate blog homepage
https://dyliu0312.github.io/blog.github.io/2025/09/07/Migrate-blog-homepage/
Author
dyliu
Posted on
September 7, 2025
Licensed under