Class: Jekyll::Paginate::Pager

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll/algolia/overwrites/jekyll-paginate-pager.rb

Overview

Disable pagination from jekyll-paginate

This plugin will create pages that contain a list of all items to paginate. Those pages won’t contain any interesting data to be indexed (as it will be duplicated content of the real pages), but will still take time to generate.

By monkey-patching the plugin, we force it to be disabled github.com/jekyll/jekyll-paginate/blob/master/lib/jekyll-paginate/pager.rb#L22

Class Method Summary collapse

Class Method Details

.pagination_enabled?(_site) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/jekyll/algolia/overwrites/jekyll-paginate-pager.rb', line 15

def self.pagination_enabled?(_site)
  false
end