github page + jekyllrb 搭建新博客

 

 github page 操做步驟:https://pages.github.com/git

(1)Create a repositorygithub

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

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

        

(2)Clone the repositorycode

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

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

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

cd <your project>
gem install jekyll
jekyll new . 

(4)push itget

if you want to start to page in localhost, useit

$ jekyll serve

then push it to serverio

~$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.

相關文章
相關標籤/搜索