Jekyll notes

Jekyll - Transform your plain text into static websites and blogs. Get up and running in seconds. Quick-start Instructions

1
2
3
4
5
6
7
  gem install bundler jekyll

  jekyll new my-awesome-site

  cd my-awesome-site

  bundle exec jekyll serve

Install FAQ

gem install bundler You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
Install zsh
https://github.com/ohmyzsh/ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# update the ruby to 3.0.0
brew install ruby

echo 'export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"' >> ~/.zshrc

source ~/.zshrc
ruby -v
which ruby
gem install github-pages 
gem install bundler
  • webrick

    1
    2
    3
    4
    
    /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve/servlet.rb:3:in `require': cannot load such file -- webrick (LoadError)
    
    ## solution:
    bundle add webrick