如何使用github pages建立一个简单的网站
2012-06-09 TECH github github pages jeklly octpress simple page
1、网站初始化
新建一个代码库名为: yourid.github.com
系统便会自动帮你开启github pages服务
默认首页index.html index.htm
2、新建一个首页测试
echo "hello github pages!" >> index.html git add index.html git commit -m 'default page' git push origin master
3、稍等几分便可生效
通过 http://yourid.github.com/ 便可访问
4、如何绑定域名
新建一个文件 CNAME 写入你的根域名即可
如果想使用子域名比如
www.xxx.com
github.xxx.com
只需要把该子域名的 CNAME 指向 yourid.github.com 即可
5、基于github page的blog或者其他CMS 可以自行去查找
我这里推荐一款blog系统 OctPress: http://octopress.org/
下一篇: 我的IMDB电影列表
上一篇: windows下如何使用github
暂无评论