hexo 静态博客的搭建
参考链接
https://blog.csdn.net/u011475210/article/details/79023429
http://theme-next.iissnan.com/
搭建 nodejs 开发环境(略)
hexo 的安装和启动
- 安装: npm install hexo-cli -g
- 初始化博客目录: hexo init blog
- 进入博客目录: cd blog
- 安装依赖: npm install
- 启动: hexo server
安装 next 主题
- 在 https://github.com/iissnan/hexo-theme-next/releases 中下载最新的稳定版本的压缩包。
解压所下载的压缩包至站点的 themes 目录下, 并将解压后的文件夹名称(如:hexo-theme-next-5.1.4)更改为 next。 - 修改 _config.yml 配置文件,把 theme: landscape 改为 theme: next
- 清除缓存: hexo clean 再重新启动: hexo server
- 验证
打开浏览器,输入:http://localhost:4000/ 即可。
评论