访问次数
我的另一个总结性博客: todototry 大米粒

记github上搭建独立域名的免费博客的方法过程

前提:拥有github帐号,linux上安装好了git。

 


全局路线:

1. 设计一个你想要的二级域名,并在git上创建一个以【二级域名.github.com】作为项目名的repository. 过程详见:【jekyll】()

2.再返回到linux中,使用git, git clone  Jekyll 到本地,再将其上传到github,方法如下:

git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.com  //此处的USERNAME.github.com更换成你设置的项目名
cd USERNAME.github.com
git remote set-url origin git@github.com:USERNAME/USERNAME.github.com.git
git push origin master

3. 在本地安装ruby gem 和 Jekyll,以便使用Jekyll生成和编译简单易用的Markdown页面模板。

 

4. 通过 ruby的rake 工具运行Jekyll 提供的rakefile来创建page和post,方法如下,

$ rake post title="Hello World"
$ rake page name="about.md"

 

5.遵照Markdown格式来编写博客,完成后使用git  add, git commit ,git push origin master等命令将博客页面上传。

 

 

6.github收到上传的Markdown格式的页面后会自动编译成网页。

 

 

7. 添加google analytics支持,见后续文章。

 

 

生成样式见: todototry.github.io   

 使用Jekyll在github上搭建的博客样式

posted @ 2013-12-15 12:51  fandyst  阅读(2373)  评论(0编辑  收藏  举报