您的位置:首页 > 编程语言

github page + jekyllrb 搭建新博客

2015-09-23 15:33 387 查看
 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[/code] 
(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.

 

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: