如何安装 Jekyll ?

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

安装 jekyll 及其简单。

检查环境

  1. GNU/Linux, Unix, 或 macOS 。
  2. Ruby 2.0 以上(含2.0)。
  3. RubyGems
  4. GCC 和 Make(通过gcc -vmake -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
\[\sum_{i=1}^n x_ie_i\]

参考