积木成楼
首页 / blog

hexo-blog折腾记录

2019-01-29 · blog · 约 8 分钟

安装折腾总览

目前的 blog 折腾经过了

目录也分为三块

HEXO 基础安装流程

hexo 的主题 next 与 fluid 的修改 hexo 进阶 next

  cd themes # 进入主题目录
  git clone https://github.com/iissnan/hexo-theme-next themes/next #克隆主题文件
    cd themes # 进入主题目录
    git clone https://github.com/fluid-dev/hexo-theme-fluid.git    #克隆主题文件
    // 主要参考 : https://hexo.fluid-dev.com/ 进行配置

过程中可能碰到的一些问题

样式与生成出来文件的分支管理?

配置未生效

未生成 index.html 内容 layout 无内容

多主机如何进行发布?

npm install hexo                     # 重新安装 hexo
npm install                          # 重新拉所需的运行所需文件
npm install hexo-deployer-git --save # 重新生成 钩子才能上传成功

git 设置 https 代理的正确姿势?

搭建 hexo,在执行 hexo deploy 时,出现 ERROR Deployer not found: git 的错误

deployer 失败

Please make sure you have the correct access rights. and the repository exists.

ssh-keygen -t rsa -C "your mail address "
cat ~/.ssh/id_rsa.pub

hexo 怎么删除文章?

如何让 百度收录

设置流量统计

使用 busuanzi 来处理

评论系统

使用 gittalk 来实现,依赖较少,github 也有 oauth 功能倒是第一次用 创建入口被隐藏了,可以通过 https://github.com/settings/applications/new 进入

Application name             // 应用名称,随便填
Homepage URL                 // 填自己的博客地址
Application description      // 应用描述,描述一下,无要求
Authorization callback URL   // 填自己要使用 `Gitalk` 的博客地址,不可乱填

参考 hexo官方文档 fluid官方文档 配置相关说明

← 返回文章列表