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

重新启动服务就可以看到新主题了

    推荐阅读