Jekyll

Posted by Alex on March 16, 2019

安装

Jekyll 官网

环境 & 用途

Mac 仅供github blog,本地调测用..

Install Ruby

1
2
3
4
5
6
7
8
# Install Ruby With Homebrew
brew install ruby

which ruby
# /usr/local/opt/ruby/bin/ruby

ruby -v
# ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18]

Install Jekyll

1
2
sudo gem install bundler
sudo gem install -n /usr/local/bin/ jekyll

启动

1
2
3
4
5
6
7
sudo gem install bundler jekyll

# Or
jekyll serve

# 查看drafts
jekyll serve --drafts

常见问题

  • 使用sudo 安装,避免权限问题
  • 安装完,遇到过 jekyll 不在环境变量中,加进去就好了