npm install -g cnpm --registry=https://registry.npm.taobao.org
sudo npm install -g hexo
# 需要获取管理员权限
hexo g
# 安装全局hexo
hexo -v
# hexo是否已安装
hexo init
# 初始化hexo
npm install
# 在当前文件夹下安装依赖包
hexo server
# 本地搭建
以下是操作步骤
ssh-keygen -t rsa -C "内填github邮箱"
cat ~/.ssh/id_rsa.pub
# 获取生成的 ssh
type: git
repo: git@github.com:Xing-hui/Xing-hui.github.io.git
branch: master
npm install hexo-deployer-git --save
hexo new post “article title”
# 在post文件夹中新建一个markdown文章
hexo g
# 生成
hexo d
# 部署
hexo d -g
# 或者一条指令即生成后部署
在地址栏中输入 https://Xing-hui.github.io 即进入你的博客.
写完文章后,你会发现文章在首页全部显示了出来, 以下方式解决此问题
<!-- more -->
根据文章内容,自己在合适的位置添加以上标签