快速入门
TIP
你可以参考 https://github.com/nexmoe/nexmoe.com 进行配置
在使用 Nexmoe 之前,您应该阅读 Hexo Docs,完成 Hexo 的安装并通过编辑 config.yml
初始化项目。
安装 Nexmoe
运行以下命令以安装 Nexmoe:
shell
npm install hexo-theme-nexmoe hexo-renderer-inferno
npm install hexo-theme-nexmoe hexo-renderer-inferno
使用 Nexmoe
- 方法1 在项目的根目录中编辑
_config.yml
。将名为theme
的键的值更改为nexmoe
。 - 方法2
shell
hexo config theme nexmoe
hexo config theme nexmoe
配置 Nexmoe
在项目的根目录中编辑 _config.nexmoe.yml
。
运行 Nexmoe
使用以下命令运行 Nexmoe:
shell
hexo server --debug
hexo server --debug
TIP
在服务启动期间,查看命令行输出中的任何异常消息,这将帮助其他人在遇到问题时更好地查找错误。
当命令行输出以下内容时,表示 Hexo 正在本地机器上的端口 4000 上侦听。使用浏览器访问 http://localhost:4000/
检查站点是否正常运行
shell
INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.
INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.
TIP
如果您在使用它时遇到问题,请尝试搜索文档或提出 问题 在 GitHub 上
更新 Nexmoe
运行以下命令更新 Nexmoe:
shell
npm update hexo-theme-nexmoe
npm update hexo-theme-nexmoe
更新后,您应该在变更日志中看到更改的内容。并编辑 _config.nexmoe.yml
以匹配新版本。
配置文件在此处参考:https://github.com/theme-nexmoe/hexo-theme-nexmoe/blob/master/source/_config.yml