Tianhe Gao

本地配置博客程序 Jekyll 环境

使用 Arch Linux:

1sudo pacman -S ruby base-devel

~/.zshrc 中加入:

1# Install Ruby Gems to default location
2export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
3export PATH="$PATH:$GEM_HOME/bin"

安装 Jekyll:

1gem install jekyll bundler

新建博客并运行:

1jekyll new myblog
2cd myblog
3bundle exec jekyll serve
4# http://localhost:4000

参考资料


No notes link to this note

Welcome to tell me your thoughts via "email"
UP