Hexo blog building process

1. Install and Git Node.js

nodejs Chinese network: http://nodejs.cn/ download nodejs, self-installation .
Git's official website: https://git-scm.com/, download and install on their own

After 1.1 installed Nodejs, check the installed version

node -v

image.png

1.2 Note: Where an input node -v command it? (Familiar may ignore this process)

windows system: windows key + R shortcut to open operation , and enter cmd , then window cmd the input node -v
image.png

Or enter in node.js command prompt in the node -v
image.png

2. hexo mounting frame by means of npm

Description: theoretically available npm install directly, but domestic npm install will be relatively slow, so will domestic mirroring step of adding one more step. Use cnpm to install. (Here point to Taobao Mirror)

2.1 using domestic Taobao mirror source

Installation command:

npm install -g cnpm --registry==https://registry.npm.taobao.org

image.png

Check cnpm

cnpm -v

image.png

2.2cnpm installation hexo framework

installation

cnpm install -g hexo-cli

image.png
Verify check the version

hexo -v

image.png

windows at initialization hexo blog, right in the files you store the blog, and then choose Git Bash

hexo init

image.png

image.png

3. Management Hexo blog

3.1 Starting hexo blog

hexo s// start or serve

Left Git bash, the right is the first blog

S HEXO
HEXO n-, "file name" New
HEXO Clear
HEXO generation G

4. deployed to Github

4.1 installation to deploy plugins

cnpm install --save  hexo deployer-git

4.2 configuration file deployment

Open _config.yml you store the blog files folder, set the Deployment
of the type: git
repo: You github hosting warehouse address
branch: mastera

4.3 Deployment Commands

hexo d

The exhibition on the achievements and thinking

5.1 final outcome

image.png

5.2 Reflection

  1. Nodejs also doing?
  2. How do git version control
  3. Why can github
  4. This process is in the windows system, which changes linux system
  5. Blog to write what
    6. How to change your blog theme skin Hexo

5.3 advice or tips

Step 1: there is described elsewhere in this tutorial is not clear, it is recommended to look at the Reference section after the article.
Step 2: Reference section did not help, then go to Baidu.
Step 3: After Baidu still be able to solve your problem, then private letter to me or give me a message. We can discuss your problems together.

Reference:

1. Taught you from zero to build their own personal blog | pit-free version of the video tutorial | HEXO
2. install node.js npm, cnpm- blog Park

Guess you like

Origin www.cnblogs.com/tamkery/p/11669086.html
Recommended