如何安装 Jekyll ?

最后编辑时间: 2017-11-04

Jekyll 一个可以将纯文本转换成静态网站的工具。使用jekyll生成并托管在coding page上的。

安装 jekyll 及其简单。

检查环境

  1. GNU/Linux, Unix, 或 macOS 。
  2. Ruby 2.0 以上(含2.0)。
  3. RubyGems
  4. GCC 和 Make(通过gcc -v  make -v 检查是否已安装)。

安装 jekyll

# Install Jekyll and Bundler gems through RubyGems
~ $ gem install jekyll bundler

# Create a new Jekyll site at ./myblog
~ $ jekyll new myblog

# Change into your new directory
~ $ cd myblog

# Build the site on the preview server
~/myblog $ bundle exec jekyll serve

# Now browse to http://localhost:4000

参考

请在下方留下您的评论.加入TG吹水群