需要安装的文件
Node.js (默认自带了npm)
git
进入git bash安装安装hexo
npm install hexo-cli -g
Hexo 初始化和本地预览
1 | hexo g # 生成页面 |
访问 http://localhost:4000,出现 Hexo 默认页面,本地博客安装成功!
部署 Hexo 到 GitHub Pages
安装: npm install hexo-deployer-git --save
然后修改 _config.yml 文件末尾的 Deployment 部分,修改成如下:
1 | deploy: |
运行 hexo d 将网站上传部署到 GitHub Pages。
访问 https://用户名.github.io 就可以看到部署的自己网站
更改主题
进入themes文件夹下运行下载
1 |
|
连着的命令
1 |
|
Next设置
ref:
http://theme-next.iissnan.com/getting-started.html#select-language
正常显示Mathjax
ref: https://wangcong.net/article/HexoWihLaTeX.html#comments
设置访问总站pv和uv(不蒜子)
1 | busuanzi_count: |
设置阅读字数和时长
1 | post_wordcount: |
v1.5.2