hexo再部署
安装
通过Node.js安装hexo
1 | npm install -g hexo-cli |
在新建文件夹内执行初始化命令
1 | hexo init |
更改主题
主题:Next
1 | npm install hexo-theme-next |
修改_config.yml
1 | # theme: landscape |
添加备案
修改主题下的_config.yml
1 | # Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, http://www.beian.gov.cn |
写文章
1 | hexo new 文章名 |
文章头部
1 | title: hexo再部署 |
部署
服务器安装git,设置好用户,git仓库,钩子
修改_config.yml
执行 hexo d