码迷,mamicode.com
首页 > 其他好文 > 详细

github page + jekyllrb 搭建新博客

时间:2015-09-23 16:51:34      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

 

 github page 操作步骤:https://pages.github.com/

(1)Create a repository

        Head over to GitHub and create a new repository namedusername.github.io, where username is your username (or organization name) on GitHub.

If the first part of the repository doesn’t exactly match your username, it won’t work, so make sure to get it right.

        

技术分享

(2)Clone the repository

Go to the folder where you want to store your project, and clone the new repository:

git clone https://github.com/username/username.github.io

(3)use jekyllrb to build the blog ,https://jekyllrb.com/

cd <your project>
gem install jekyll
jekyll new . 

(4)push it

if you want to start to page in localhost, use

$ jekyll serve

then push it to server

~$git add --all
~$git commit -m "Initial commit"
~$git push -u origin master

(5)and you‘re done!

Fire up a browser and go to http://username.github.io.

 

 

 

 

 

github page + jekyllrb 搭建新博客

标签:

原文地址:http://www.cnblogs.com/iwangzheng/p/4832440.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!