Hao Wen's blog

This version is only for Win environment
paper Keywords: HEXO green version , HEXO Portable , HEXO configuration , HEXO , U disk

Hexo is a fast, simple and efficient framework blog, GitHub Flavored Markdown support all the features; generating ultra-fast speed, so that hundreds of pages instantaneously rendered in a few seconds; also has a variety of plug-ins and so on.

But like a lot of tutorial written, to build Hexo local environment, you need to install Node.js, Git and using npm install and configure. This is for the novice with no experience, it is a big challenge. At the same time, due to the presence of these environments, resulting in the need to replace the computer if the time to re-configure a new installation of Hexo environment, they have to take some effort.

So, Qiang Qiang, we integrate a Hexo portable version to simplify the deployment of the local environment.

#### version introduces
so-called portable version in the end what is? Portable Hexo local environment is to require various environment-dependent integrated together, made version does not require installation.

This Portable (Release 1.0.0) software included as follows:

  • Git: 2.7.4
  • Nodejs: 6.10.1
  • Elevation: 4.4.1
  • HeXo: 3.2.2

Need for portable, not fixed configuration environment variables, in addition to the respective batch file, as will be described in detail.

#### from scratch, one minute set up Hexo writing environment
Having said that, We'll teach you how to start within one minute, starting from scratch to build Hexo writing environment!

##### 1 registered a Github account

1.1 enters Github , and fill in the username, email address, account password in the box on the right three, respectively, and click Sign up for Github;

Figure 1.1.1

1.2 After entering the Welcome page, click Finish sign up;

Figure 1.2.1

After (1.3 enter this step Figure 1.3.1 ), first do not point to remember anything, check your email, you should receive the following message ( Figure 1.3.2 ), confirm your email. Otherwise, you will see an error page ( Figure 1.3.3 ). After the query is completed in FIG 1.3.1 page shown, click + New repository;

Figure 1.3.1

Figure 1.3.2

Figure 1.3.3

1.4 in the red box, please Repository nameenter the inside 用户名.github.io( the username is what you have just 1.1 steps registered user name), then click Create repository;

Figure 1.4.1

1.5 At this point, Github page registration section is completed

#### download HEXO Portable 2

2.1 Visit our HEXO Portable page or Github repository to download the latest portable version;

2.2 Double-click the resulting self-extracting file, unzip to where you need to install a blog, you can select the hard disk or U disk;

#### 3 Configuring your environment

3.1 in your blog folder, you'll find a lot of batch files, I first introduced the use of each file:

  • Basic configuration environment to configure basic information about the blog >>
  • >> deployment configuration Github blog configuration deployment
  • Start >> start with command line environment variables Git-Bash, or can not use the node, npm, git commands
  • New article New article >>
  • 渲染并本地测试 >> 生成并本地预览
  • 渲染并部署 >> 生成并部署到GitHub
  • 重置配置文件 >> 重置_config.yml

3.2 我们继续进行环境配置,双击配置基本信息并按顺序输入以下信息:

  • 主标题:顾名思义
  • 副标题:顾名思义
  • 描述:顾名思义
  • 作者:顾名思义
  • 网站地址:填写 用户名.github.io (此处的用户名为步骤1.1中填写的用户名)
    如果您已经购买了域名,可以参看相关的文章!

3.3 双击配置Github部署并按顺序输入以下信息:

  • Github的用户名:此处的用户名为步骤1.1中填写的用户名
  • Github注册邮箱:此处的注册邮箱为步骤1.1中填写的注册邮箱

3.4 输入完毕之后,会进行测试部署,等待屏幕提示下面将进行部署测试,稍后将有一个openssh的对话框出现,请输入你的github用户密码。的时候,按回车继续;(此处的用户密码为步骤1.1中填写的用户密码)

3.5 然后继续等待,此时屏幕会出现n多行,耐心等待即可;

3.6 等待屏幕提示请访问 https://用户名.github.io 查看是否部署成功!的时候,在浏览器中输入https://用户名.github.io ,理论上可以看到你的Hexo站点!(此处的用户名为步骤1.1中填写的用户名)

3.7 At this point, you are done! Hexo environment, so your blog Hexo this folder to move regardless of what computer can be accessed through start the command line bash command line appears, or the rest of the convenient batch file such as a new article , rendering and local testing , rendering, and deploy the appropriate action.

3.8 If the error in the configuration you may run the reset profile after repeated 3.1 to 3.6 Step

#### 4 begin to enjoy the pure Hexo writing it!

#### 5 Notes

Original: Big Box  Hao Wen's blog


Guess you like

Origin www.cnblogs.com/chinatrump/p/11597111.html