Hexo 说明文档
- git clone 到本地服务器
- 进入themes/文件夹,clone https://github.com/lunhui1994/hexo-theme-material-x 仓库并命名为material-x
若mateiral-x有提交,请先提交material-x的修改,然后再提交本项目的修改。
- 创建文章:
hexo new [layout] <title>
- 生成静态文件HTML
hexo generate 监听生成静态文件HTML hexo generate -w
- 上传至github
hexo deploy
(可配置: 根目录文件 _config.yml 中配置source_dir)
1. 资源存放位置:'/source/' 下,地址:'/'; 例如 图片存放位置/source/img/xxx.png ,引用地址: /img/xxx.png
2. 文章存放位置: '/source/_posts/'; 生成的文章在public中.