jekyll-algolia 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83d5d5dc0855c5a04fec685aa2538f65cfa0d9d9
|
4
|
+
data.tar.gz: a995dd304d0b12b9e122a2729f36d55dc60ee663
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a5de7446c8ede933ded49f9a8fb819559b097d947529535404b79ecbeef6ca89ef293498929da4a77fa6da74b46ad81fe78e457423b5f01b8aaacbbf8425f05
|
7
|
+
data.tar.gz: 646b7126e761ddaced88053693d4c86f32ec1ca5ee772b13351345eaa006ab761d560578c504613e1845adc16953d15616459c302c95f5500bdce626e876df63
|
data/lib/jekyll-algolia.rb
CHANGED
@@ -55,6 +55,7 @@ module Jekyll
|
|
55
55
|
require 'jekyll/algolia/overwrites/githubpages-configuration'
|
56
56
|
require 'jekyll/algolia/overwrites/jekyll-algolia-site'
|
57
57
|
require 'jekyll/algolia/overwrites/jekyll-document'
|
58
|
+
require 'jekyll/algolia/overwrites/jekyll-paginate-pager'
|
58
59
|
require 'jekyll/algolia/overwrites/jekyll-tags-link'
|
59
60
|
|
60
61
|
# Register our own tags to overwrite the default tags
|
@@ -234,12 +234,6 @@ module Jekyll
|
|
234
234
|
# Public: Disable features from other Jekyll plugins that might interfere
|
235
235
|
# with the indexing
|
236
236
|
def self.disable_other_plugins(config)
|
237
|
-
# Disable pagination from jekyll-paginate
|
238
|
-
# It creates a lot of /page2/index.html files that are not relevant to
|
239
|
-
# indexing
|
240
|
-
# https://github.com/jekyll/jekyll-paginate/blob/master/lib/jekyll-paginate/pager.rb#L23
|
241
|
-
config['paginate'] = nil
|
242
|
-
|
243
237
|
# Disable archive pages from jekyll-archives
|
244
238
|
config['jekyll-archives'] = nil
|
245
239
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Jekyll
|
4
|
+
module Paginate
|
5
|
+
# Disable pagination from jekyll-paginate
|
6
|
+
#
|
7
|
+
# This plugin will create pages that contain a list of all items to
|
8
|
+
# paginate. Those pages won't contain any interesting data to be indexed
|
9
|
+
# (as it will be duplicated content of the real pages), but will still
|
10
|
+
# take time to generate.
|
11
|
+
#
|
12
|
+
# By monkey-patching the plugin, we force it to be disabled
|
13
|
+
# https://github.com/jekyll/jekyll-paginate/blob/master/lib/jekyll-paginate/pager.rb#L22
|
14
|
+
class Pager
|
15
|
+
def self.pagination_enabled?(_site)
|
16
|
+
false
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-algolia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Carry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: algolia_html_extractor
|
@@ -307,6 +307,7 @@ files:
|
|
307
307
|
- lib/jekyll/algolia/overwrites/githubpages-configuration.rb
|
308
308
|
- lib/jekyll/algolia/overwrites/jekyll-algolia-site.rb
|
309
309
|
- lib/jekyll/algolia/overwrites/jekyll-document.rb
|
310
|
+
- lib/jekyll/algolia/overwrites/jekyll-paginate-pager.rb
|
310
311
|
- lib/jekyll/algolia/overwrites/jekyll-tags-link.rb
|
311
312
|
- lib/jekyll/algolia/progress_bar.rb
|
312
313
|
- lib/jekyll/algolia/shrinker.rb
|