安装jekyll

安装jekyll命令:

gem install jekyll

➜  blog gem install jekyll

Fetching: safe_yaml-1.0.4.gem (100%)

Successfully installed safe_yaml-1.0.4

Fetching: rouge-1.10.1.gem (100%)

Successfully installed rouge-1.10.1

Fetching: mercenary-0.3.6.gem (100%)

Successfully installed mercenary-0.3.6

Fetching: liquid-3.0.6.gem (100%)

Successfully installed liquid-3.0.6

Fetching: kramdown-1.11.1.gem (100%)

Successfully installed kramdown-1.11.1

Fetching: jekyll-watch-1.4.0.gem (100%)

Successfully installed jekyll-watch-1.4.0

Fetching: jekyll-sass-converter-1.4.0.gem (100%)

Successfully installed jekyll-sass-converter-1.4.0

Fetching: colorator-0.1.gem (100%)

Successfully installed colorator-0.1

Fetching: jekyll-3.1.3.gem (100%)

Successfully installed jekyll-3.1.3

Parsing documentation for safe_yaml-1.0.4

Installing ri documentation for safe_yaml-1.0.4

Parsing documentation for rouge-1.10.1

Installing ri documentation for rouge-1.10.1

Parsing documentation for mercenary-0.3.6

Installing ri documentation for mercenary-0.3.6

Parsing documentation for liquid-3.0.6

Installing ri documentation for liquid-3.0.6

Parsing documentation for kramdown-1.11.1

Installing ri documentation for kramdown-1.11.1

Parsing documentation for jekyll-watch-1.4.0

Installing ri documentation for jekyll-watch-1.4.0

Parsing documentation for jekyll-sass-converter-1.4.0

Installing ri documentation for jekyll-sass-converter-1.4.0

Parsing documentation for colorator-0.1

Installing ri documentation for colorator-0.1

Parsing documentation for jekyll-3.1.3

Installing ri documentation for jekyll-3.1.3

Done installing documentation for safe_yaml, rouge, mercenary, liquid, kramdown, jekyll-watch, jekyll-sass-converter, colorator, jekyll after 8 seconds

9 gems installed

 

➜  blog

 

创建项目:

jekyll new whuanghkl-site

 

启动项目:

 jekyll serve

➜  blog jekyll new whuanghkl-site

New jekyll site installed in /Users/whuanghkl/work/mygit/blog/whuanghkl-site.

➜  blog cd whuanghkl-site

➜  whuanghkl-site ls

_config.yml _includes   _layouts    _posts      _sass       about.md    css         feed.xml    index.html

➜  whuanghkl-site jekyll serve

Configuration file: /Users/whuanghkl/work/mygit/blog/whuanghkl-site/_config.yml

            Source: /Users/whuanghkl/work/mygit/blog/whuanghkl-site

       Destination: /Users/whuanghkl/work/mygit/blog/whuanghkl-site/_site

 Incremental build: disabled. Enable with --incremental

      Generating...

                    done in 0.281 seconds.

 Auto-regeneration: enabled for '/Users/whuanghkl/work/mygit/blog/whuanghkl-site'

Configuration file: /Users/whuanghkl/work/mygit/blog/whuanghkl-site/_config.yml

    Server address: http://127.0.0.1:4000/

  Server running... press ctrl-c to stop.

 

参考:http://jekyllrb.com/

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值