hexo实现个人博客
安装依赖
1 | sudo apt install nodejs |
hexo使用
1 | hexo init blog |
服务器启动之后就可以在浏览器里访问了http://localhost:4000/.
hexo配置
更换主题
hexo 主题官网 https://hexo.io/themes/ ,找到自己喜欢的主题,获取主题的github地址 , 一般github上面有该主题的使用方法,下面是even主题的使用方法
1 | npm install hexo-renderer-scss --save |
修改博客根目录下的 _config.yml
文件,把之前的 theme字段的值改为even
1 | # Extensions |
重新启动服务就可以看到新主题了