分页:
vi _config.yml
添加
paginate:5
paginatepath: [‘topics/study/page/:num’,’topics/life/page/:num’]
问题:
Deprecation: You appear to have pagination turned on, but you haven’t included the jekyll-paginate
gem. Ensure you have plugins: [jekyll-paginate]
in your configuration file.
解决方案:
1,gem install jekyll-paginate
2,$gem list |grep jekyll-paginate
jekyll-paginate (1.1.0)
3,$vi Gemfile
gem “jekyll-paginate”,”~> 1.1.0”
4,$vi _config.yml
plugins:
5,$ bundle install
$ bundle exec jekyll serve
问题上传github 访问404
$vi _config.yml
baseurl: “/MyBlog” # the subpath of your site, e.g. /blog
url: “https://xiazemin.github.io” # the base hostname & protocol for your site, e.g. http://ex
问题
Pagination: Pagination is enabled, but I couldn’t find an index.html page to use as the pagination template. Skipping pagination.
$vi index.html