您的位置:首页 > Web前端 > BootStrap

jekyll bootstrap搭建github blog

2015-05-05 12:15 387 查看
前提你必须有一个GitHub账号且本机安装有Git

一、创建一个新的仓库

去你的https://github.com主页新建一个仓库 名字为USERNAME.github.com

USERNAME为你的username(下同)



二、安装Jekyll-Bootstrap

在Git Bash中输入例如以下命令 将代码clone到你本地

git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.com
cd USERNAME.github.com
git remote set-url origin https://github.com/itmyline/USERNAME.github.com.git git push origin master


PS:假设想clone到指定文件夹,则使用例如以下格式 git clone xxx.git "指定文件夹"


三、完毕

接下来Github将创建你的公开博客在 http://USERNAME.github.com


请參考本文搭建的bloghttp://itmyline.github.io/






假设你已经有blog在Github上?

假设你机器上安装有jekyll,假设没有请參考Windows上安装Jekyll

在本地执行Jekyll-Bootstrap,打开命令行工具 输入例如以下命令:

$ git clone https://github.com/plusjade/jekyll-bootstrap.git $ cd jekyll-bootstrap
$ jekyll serve

浏览器中打开http://localhost:4000,我们将能看到和搭建在github上一样的效果


作者:itmyhome

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