Octopress填坑日记
今日开始开始填Octpress在天朝的坑。
文件404问题
修改代码简直是太辛苦了。毕竟涉及文件比较多。
于是干脆简单粗暴的把这些文件不存在的文件都创建了吧。直接上代码了
1
2
3
4
5
6
7
| cd source/
mkdir github
mkdir github/images
cp images/noise.png github/images/
cp images/line-tile.png github/images/
cp images/rss.png github/images/
cp images/code_bg.png github/images/
|
绑定域名更完美
按照https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages说明的绑定域名可以,但是不够完美。
举一个例子,我之前的域名为androidyue.github.io,新的域名为droidyue.com,按照上述操作,可以完成绑定。但是在网站地图文件sitemap.xml中还是原来的androidyue.github.io。
如何解决呢,其实将http://androidyue.github.io 换成 http://droidyue.com 即可。修改_config.yml文件。以下为修改前后diff。
1
2
3
4
5
6
| diff --git a/_config.yml b/_config.yml
-url: http://androidyue.github.io
+url: http://droidyue.com
title: 技术小黑屋
subtitle: Better Than Before
author: androidyue
|
Written with StackEdit.