hexo实现个人博客
安装依赖
sudo apt install nodejs ##安装nodejs
sudo apt install npm ##安装npm
npm install -g cnpm --registry=https://registry.npm.taobao.org ##设置npm淘宝镜像
sudo apt install git ##安装git
npm install hexo-cli -g ##安装hexo-cli
hexo使用
hexo init blog
cd blog
npm install
hexo server
服务器启动之后就可以在浏览器里访问了http://localhost:4000/.
hexo配置
更换主题 【hexo实现个人博客】hexo 主题官网 https://hexo.io/themes/ ,找到自己喜欢的主题,获取主题的github地址 , 一般github上面有该主题的使用方法,下面是even主题的使用方法
npm install hexo-renderer-scss --save
git clone https://github.com/ahonn/hexo-theme-even themes/even
修改博客根目录下的
_config.yml
文件,把之前的 theme字段的值改为even# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
## theme: landscape
theme: even
重新启动服务就可以看到新主题了
推荐阅读
- 一个人的旅行,三亚
- 一个人的碎碎念
- 七年之痒之后
- 异地恋中,逐渐适应一个人到底意味着什么()
- 遗憾是生活的常态,但孝顺这件事,我希望每一个人都不留遗憾
- 关于QueryWrapper|关于QueryWrapper,实现MybatisPlus多表关联查询方式
- MybatisPlus使用queryWrapper如何实现复杂查询
- python学习之|python学习之 实现QQ自动发送消息
- NO.38|NO.38 我不是嫁不出去,而是不想嫁
- 孩子不是实现父母欲望的工具——林哈夫