建立自己的 github 博客

       几个月前就想建立自己的github博客,但是一直拖到前几天才建立。本仙女还是个菜鸟,还是处于学习状态,没做过项目,但是以后还是要向大佬学习,努力经营自己的github账号。 

    我的 github 博客:点击打开链接

1、安装node, ( 我的是node-v8.11.1-x64  ) ,可以去node的官网直接下载: 点击打开链接

2、安装hexo,可以打开cmd终端输入

npm install -g hexo-cli

3、安装完hexo后开始在电脑上建立一下自己写博客的文件夹,依旧是在cmd终端中运行

cd  C:\Users\fzx\Documents     #实际上是进入了电脑的文档文件夹
mkdir blog
cd blog
hexo init blog
cd blog
hexo s
然后就可以用 http://localhost:4000/ 来查看博客是否安装成功
npm install hexo-deployer-git --save

4、修改_config.yml这个配置文件

# Site
title: ZuxianFu
subtitle: share with you
description: When your talents can't support your ambition, then you should stop and learn
keywords: 
author: ZuxianFu
language: zh-Hans
timezone:
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
  type: git
  repository: [email protected]:zuxian/zuxian.github.io.git
  branch: master






未完待续。。。。。。





参考别人的博客:

1.    师兄的博客

2. 

猜你喜欢

转载自blog.csdn.net/image_fzx/article/details/80210102