1.Windows下安装jekyll建议直接安装chocolatey来装ruby。我因为在装的时候ruby和实际的gemfile版本不对,导致了很多问题。
参考链接 https://chocolatey.org/install#install-with-cmdexe
进入cmd,run如下命令安装chocolatey:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey
然后根据official 文档: http://jekyllrb.com/docs/windows/#installation
Install Ruby via Chocolatey: choco install ruby -y
2.为了一次性解决timezone github-pages 和 jekyll-paginate的问题。直接将gemfile设置为如下后,进行bundle install
source 'https://rubygems.org'
gem "jekyll"
gem "jekyll-paginate"
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'github-pages', group: :jekyll_plugins