Config of Personal Blog-Yifan

Posted by Yifan on July 1, 2022

1. Configure the local environment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# install homebrew on mac
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# install ruby on mac
brew install ruby 
# resolve writing permission issue; following the instruction of this command
brew info ruby
#install required jekyll and bundler
gem install jekyll
gem install bundler
# entring the project dir
cd desktop/skytruine.github.io
# config
bundle install
bundle add webrick
bundle exec jekyll serve
# now we can see the website through localhost:4000