Closed neilChenXie closed 7 years ago
liquid等模板语言,对于静态化页面的灵活性提高,有重要的作用
在Mac OS X系统上搭建Jekyll环境的时候遇到了挺麻烦的问题 百度上也找不到答案
abc-MacBook-Pro:blog abc$ jekyll serve
WARN: Unresolved specs during Gem::Specification.reset:
jekyll-watch (~> 1.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Configuration file: /Users/chen/ChenSeries/blog/_config.yml
Dependency Error: Yikes! It looks like you don't have jekyll-paginate or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-paginate' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
注意WARN
信息,我的解决关键是搜索了WARN
信息
倒序
for Unresolved specs,确定解决这个WARN
# 删除文件夹下的Gemfile
rm Gemfile
# 恢复Gemfile:bundle execa
有时候OS X会有两个版本的Jekyll.Stack Overflow
gem uninstall jekyll
安装 jekyll-paginate
gem install jekyll-paginate
创建新分支
git checkout --orphan gh-pages
第一次push
git push --set-upstream origin gh-pages
tag