应用fluid主题

下载应用fluid主题

  1. fluid的GitHub页面下载压缩包

  2. 解压到博客根目录/themes/fluid

  3. 更改全局配置

    1
    theme: fluid

上传到GitHub Pages

github新建仓库

create new repository

注意仓库名字必须为
用户名.github.io

安装depoly插件

博客根目录下

1
npm install hexo-deployer-git --save

获取ssh密钥并绑定仓库

  1. 设置git用户名和邮箱
1
2
git config --global user.name "Github用户名"
git config --global user.email "Github邮箱"
  1. 创建ssh密钥
1
ssh-keygen -t rsa -C "Github邮箱"

将公钥id_rsa.pub内容复制到github新建SSH ssh-key
create ssh

id_rsa.pub位于~/.ssh/目录下

  1. 验证连接
1
ssh -T git@Github.com

显示 “Hi xxx! You’ve successfully…”及链接成功

  1. 修改全局配置
1
2
3
4
deploy:
type: git
repository: git@Github.com:用户名/用户名.Github.io.git
branch: master

部署到GitHub Pages

1
hexo d