This repository was archived by the owner on Feb 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -244,10 +244,18 @@ def self.extensions_to_index
244
244
245
245
# Public: Disable features from other Jekyll plugins that might interfere
246
246
# with the indexing
247
+ # Note that if other jekyll plugins are defined as part of the
248
+ # :jekyll_plugins group in the Gemfile, we might be able to override them
249
+ # using .load_overwrites in .load_overwrites in jekyll-algolia.rb.
250
+ # If they are simply required in Gemfile, then we might need to revert
251
+ # their values to nil values from here
247
252
def self . disable_other_plugins ( config )
248
253
# Disable archive pages from jekyll-archives
249
254
config [ 'jekyll-archives' ] = nil
250
255
256
+ # Disable paginatio from jekyll-paginate
257
+ config [ 'paginate' ] = nil
258
+
251
259
# Disable tags from jekyll-tagging
252
260
config [ 'tag_page_dir' ] = nil
253
261
config [ 'tag_page_layout' ] = nil
Original file line number Diff line number Diff line change 438
438
it { should include ( 'jekyll-archives' => nil ) }
439
439
end
440
440
441
+ context 'disable jekyll-paginate' do
442
+ it { should include ( 'paginate' => nil ) }
443
+ end
444
+
441
445
context 'disable jekyll-tagging' do
442
446
it { should include ( 'tag_page_dir' => nil ) }
443
447
it { should include ( 'tag_page_layout' => nil ) }
You can’t perform that action at this time.
0 commit comments