hexo搭建博客

2018-09-21  本文已影响0人  左手一份执
  1. 安装(需要node,git)
npm install -g hexo-cli
  1. 阅读hexo官方文档

    https://hexo.io/zh-cn/docs/setup

  2. 完成建站,配置,熟悉hexo常用命令用法(init,new,generate,server,deploy)

  3. 使用主题

    https://github.com/yscoder/hexo-theme-indigo

  4. 按照文档说明,换成hexo-theme-indigo主题

  5. 修改完配置,主要修改一些个人信息

  6. 创建文章

hexo new post 文章标题
  1. 利用hexo发布到xxxx.github.io(hexo deploy)
  2. 使用gitment支持评论
{HEXO_ROOT}/themes/indigo/_config.yml修改配置
gitment:
  owner: xxx # github用户名
  repo: xxx.github.io # 不加https
  client_id: xxx
  client_secret: xxx

使用gitment插件中间遇到的问题

上一篇 下一篇

猜你喜欢

热点阅读