安装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/

 

你可能感兴趣的:(jekyllrb,blog,搭建博客,github.io)