Custom pagination generator for Jekyll.
Add this line to your application's Gemfile:
gem 'jekyll-paginate-by'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-paginate-by
Once the gem is installed on your system, Jekyll will auto-require it. Just set the following configuration
Add to _config.yml
:
paginate: true paginate_by: options: permalink: "teste" filters: - category: per_page: 20 max_pages: 10 permalink: "categories/$" template: "_templates/list" page_link: "page:num" exclude: - category: "excluded" - tags: is_tag: true per_page: 20 max_pages: 10 permalink: "tags/$" template: "_templates/list" page_link: "page:num" - all: exclude: - category: "excluded" - category: only: - category: "category_a"
- Fork it ( http://github.com/marighella/jekyll-paginate/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request