美文网首页
hexo搭建博客

hexo搭建博客

作者: 左手一份执 | 来源:发表于2018-09-21 14:53 被阅读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插件中间遇到的问题

相关文章

网友评论

      本文标题:hexo搭建博客

      本文链接:https://www.haomeiwen.com/subject/ohnanftx.html