minimal-mistakes是一个基于jekyll的个人网页工具。
sudo apt-get install ruby-full build-essential zlib1g-dev
配置环境变量
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
bundle config mirror.https://rubygems.org https://gems.ruby-china.com
gem install jekyll bundler
bundle install
bundle exec jekyll liveserve #有的是serve没有live
# bundle exec jekyll b # 只生成网页到site文件夹,不开启本地服务器
即可在http://localhost:4000看到网页。