如何使用
方式一
下载 示例源码 的整个仓库代码。
git clone https://github.com/xaoxuu/resume-docs
|
然后安装必要的依赖包
方式二
创建全新的博客,通过 npm
命令安装:
然后删除多余的依赖包(重要),打开 package.json
复制并全部替换为以下内容:
{ "name": "hexo-site", "private": true, "hexo": { "version": "5.0.0" }, "scripts": { "start": "hexo server", "build": "node pre-deploy.js && hexo clean && hexo generate", "deploy": "npm run build && hexo deploy" }, "engines": { "node": ">=8.9.0" }, "dependencies": { "hexo": "^5.0.0", "hexo-all-minifier": "^0.5.3", "hexo-autonofollow": "^1.0.1", "hexo-deployer-git": "^2.1.0", "hexo-fs": "^3.1.0", "hexo-lazyload-image": "^1.0.9", "hexo-offline": "^1.0.0", "hexo-renderer-ejs": "^1.0.0", "hexo-renderer-marked": "^3.0.0", "hexo-renderer-stylus": "^1.1.0", "hexo-server": "^1.0.0" } }
|
然后输入 npm i
安装依赖包。
编写简历
打开 index.md
文件:
按照示例中的提示语将信息修改为自己的。
部署
打开站点配置文件:
resume-docs/_config.yamldeploy: - type: git repo: branch: master message: update pages
|
Hexo官方教程:https://hexo.io/zh-cn/docs/one-command-deployment