github page + jekyllrb 搭建新博客

使用GitHub搭建个人页面指南
本文将指导您如何通过GitHub创建个人页面,包括创建仓库、克隆仓库、使用Jekyll生成静态网站,本地预览及远程部署等步骤。

 

 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.

 

 

 

 

 

转载于:https://www.cnblogs.com/iwangzheng/p/4832440.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值