Skip to content

Instantly share code, notes, and snippets.

@nicoespeon
nicoespeon / category_pagination.rb
Last active April 27, 2017 20:45
Per category pagination Jekyll 1.5.1
# Per-category pagination. Useful for multilingual blogs =)
# It will react, regarding your configuration in `config.yml`:
#
# paginate_per_category: true|false - activate this pagination or keep the
# default one
# default_category: "en" - determine the default category if you
# wish the root pagination to be this one
module Jekyll
module Generators
class Pagination < Generator