Github Pages with a Custom subdomain name - Hexo Style

This is going to be quick.

So you don’t like the username.github.com.

You want to change that to blog.superrat.com or something weird like that

Here’s how make it happen:

  • Follow the steps here to auto generate a CNAME file in your site’s repo
  • Go to your domain name vendor’s account page and create a CNAME record. This may vary for different vendors. I use namecheap.com so I followed this guide.
  • Now this is the tricky part. The url in your _config.yml should match the sub domain you created above.

There you have it. Now your blog should be available using your weird custom domain name now. Give me some feedback in the comments.

I’ll post a tutorial on how I blog these days for newbies to Hexo and static site generation.

Happy Coding