SniGoal

Hexo tips

2015-09-16

标签

给一篇文章添加多个标签,格式如下:

tags: [tag1, tag2, tag3]

域名

GitHub Pages绑定域名需要在代码仓库更目录下创建CNAME文件,文件内容是要绑定的域名。

Hexo对无文件名后缀的文件不做处理,所以可以在source目录下创建CNAME文件并在内容中写明域名。

404

在source目录下创建404.html或404.md。

重启后出现‘Permission denied (publickey)’错误

需要将key添加到ssh-agent。

ssh-add ~/.ssh/id_rsa

ref https://help.github.com/articles/generating-ssh-keys/

Could not open a connection to your authentication agent

需要启动ssh-agent并将key添加到ssh-agent。
# start the ssh-agent in the background
ssh-agent -s

# start the ssh-agent in the background
eval $(ssh-agent -s)

ssh-agent bash

ref http://www.cnblogs.com/sheldonxu/archive/2012/09/17/2688281.html

Tags: tips

扫描二维码,分享此文章