jekyll bootstrap搭建github blog

来源:互联网 发布:淘宝网店技术 编辑:程序博客网 时间:2024/05/16 03:17

前提你必须有一个GitHub账号且本机安装有Git

一、创建一个新的仓库

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

USERNAME为你的用户名(下同)


二、安装Jekyll-Bootstrap

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

git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.comcd USERNAME.github.comgit remote set-url origin https://github.com/itmyline/USERNAME.github.com.gitgit 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

出处:http://blog.csdn.net/itmyhome1990/article/details/42028597


12 0
原创粉丝点击