0%

Create blog with Hexo + GithubPage(https) + Google Domain

Start writing notes on blog and transfer notes from hackmd.io

The accurate date weren’t recorded on hackmd.io, the date on article is nothing but the way I use to order the notes.

Hexo

1
2
npm install hexo-cli -g
npm install live-server -g

Create blog

1
2
3
4
5
6
7
8
9
10
11
12
hexo init blog
cd blog
npm install

# create a post with title "test"
hexo new test

# hexo generate
hexo g

# preview site locally
live-server public

Deploy

Install hexo-deployer-git

1
npm install hexo-deployer-git --save

Config hexo folder/_config.yml

1
2
3
4
deploy:
type: git
repo: https://github.com/{username}/{username}.github.io
branch: master

Simplify deploy process through using deploy.sh

1
2
3
hexo clean
hexo generate
hexo d

Github Page ( https ) + Google Domain

See this article: How to setup google domain for github pages

DNS config take effect fast(I think): it took not two days but maybe within 1~2 hours.