A. Log in to your github, create a warehouse.
Note: If you want your site through <你的 GitHub 用户名>.github.io
domain names, your repository should be directly named <你的 GitHub 用户名>.github.io
.
As my warehouse named: 201705010201.github.io
II. Installation (here I use administrator cmd to open a command window of)
cnpm install --save hexo-deployer-git
Patience to wait for the installation to complete.
III. _Config.yml modify file
Or to create your own file folder found _config.yml file, at the end of the file, add the following
Deploy: of the type: git repo: The first step in creating a warehouse address branch: master
Such as
deploy: type: git repo: [email protected]:201705010201/201705010201.github.io.git branch: master
Here note, type, repo, there is a space behind the branch.
IV. Pushed on github
On the file you created folder pushed to github, you must first get to the next your folders, as I was bolg, enter the following command.
hexo g
hexo d
(Here I am open as administrator cmd command window, you can also use git)
It can be patient. After the completion of the warehouse can just created.
Then you can access your personal blog site directly through your warehouse name. Without going through localhost: 4000 visit.
Such as: https://201705010201.github.io
At this point, you have a own blog site. Come and try it.