jekyll 参考:
一、mac
安装完毕Ruby,下载jekyll-clean后启动:jekyll serve --watch
会显示需要一些gem相关的组件
根据参考资料安装 bundler
gem install bundler
安装完毕,执行bundle init 然后在显示的安装目录的下的Gemfile中配置
gem "jekyll-paginate"gem "kramdown"gem "jekyll-watch"gem "wdm", "~> 0.1.0" if Gem.win_platform?
保存以后,执行bundle install
$ bundle installFetching gem metadata from https://rubygems.org/............Fetching gem metadata from https://rubygems.org/.Resolving dependencies...Using bundler 1.16.0Using ffi 1.9.18Fetching jekyll-paginate 1.1.0Installing jekyll-paginate 1.1.0Using rb-fsevent 0.10.2Using rb-inotify 0.9.10Using listen 3.0.8Using jekyll-watch 1.5.0Using kramdown 1.15.0Bundle complete! 3 Gemfile dependencies, 8 gems now installed.Use `bundle info [gemname]` to see where a bundled gem is installed.$ bundle info jekyll-paginate * jekyll-paginate (1.1.0) Summary: Built-in Pagination Generator for Jekyll Homepage: https://github.com/jekyll/jekyll-paginate Path: /Users/sz/.rvm/gems/ruby-2.4.1/gems/jekyll-paginate-1.1.0
根据提示:bundle info jekyll-paginate 可以显示 刚才安装的jekyll-paginate的信息
_config.yml将gems替换成plugins
二、win
1.安装Ruby 安装成功以后检查 ruby -v 、gem -v ;
2.gem install bundle、gem install jekyll 安装成功 检查 bundle -v、jekyll -v 看到各自安装的版本;
win下 bundle install的时候需要安装msys2 软件主页:https://sourceforge.net/projects/msys2/
hexo:参考:http://visugar.com/