Two, hexo + github to build a simple use of personal blog

Use hexo + github build a personal blog can access the external network, the primary blog article using a method for recording.

New - write - generation - the whole process of deploying article

1, using cmd complete

  1. Open Command Prompt [win + r Input cmd]
  2. Switch to your local blog directory
  3. Creating md file for a later article written
  4. Create a good file D: \ Blog under \ source_posts, you can edit it after opening
  5. Editors page of the article after the completion of generation and deployment
  6. Successful visit https://zsy0216.github.io/
#1.打开命令提示符cmd
win+r :cmd
#2.切换到本地目录
d:
cd Blog
#3.创建可编辑的文件
hexo new post "blog-name"
#4.进入到文件所在目录双击编辑
#5.对文章进行生成部署
hexo d -g
#5.1.需要的扩展:
npm install hexo-deployer-git
#6.访问
https://zsy0216.github.io/

2. Complete at git bash

  1. Edit the article above
  2. Enter the directory publishing articles
  3. Generation and deployment
#1.
win+r :cmd
d:
cd Blog
hexo new post "blog-name"
#1.1.进入到文件所在目录双击编辑
#2.进入文章所在目录鼠标右键选择git bash here
#3.生成部署
hexo generate
hexo deploy

Guess you like

Origin www.cnblogs.com/tassel/p/10961909.html