jekyll-algolia 1.4.8 → 1.4.9

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
  SHA256:
3
- metadata.gz: 057a2f81a44baa0f0408de91f01537b3e158841e4ae9b6106923d57a88f11159
4
- data.tar.gz: d3e7d88edd82282fe99d506406d0884aafb48049066638e68cd3f8f3aa0e7cbf
3
+ metadata.gz: b588a386a93a1d56d7fb38a112b0bb4dffc7c8c241be3c82ed521fd463337bdd
4
+ data.tar.gz: 0f0c6462e81c5206a9c55b96501c63e1d16a6b12c748ea3c1d99336746a06ba2
5
5
  SHA512:
6
- metadata.gz: 8fb927d3c90919341f48d49b47aa5e72018c78f1c06241149f868d2c4395bf94ba5a7932ed5769a8873c6d9ac84872e31bf1cfda4a8bb9296765303025534b46
7
- data.tar.gz: 2602e67b07d7582517a615b3410dde5ec375e0c1795015adc41f8059b3e6d4261918048056fa6330ac13df75c63d569aa06a5858e3d45cc596cc93348ecd3d36
6
+ metadata.gz: 836973576f66ec70396bfcf7f7d2e4b3935a340af50ab6b548a30450b42140a2f339b4e3d685390502c1191dd35fef1301efb53e506fd82792e24bea6671cd51
7
+ data.tar.gz: bbe8dc1b8792365d15ef39c518fa77b6aedc384435d6abfcd97ad29e57251198e384611bbd60d95977104ed4526d3b0646d69ba4aa66d3b695ad62094a00a914
@@ -14,9 +14,12 @@ W:   {record_log_path}
14
14
  W:
15
15
  I:This issue can be caused by malformed HTML preventing the parser to correctly grab the content of the nodes. Double check that the page actually renders correctly with a regular `jekyll build`.
16
16
  I:
17
+ I:You can also exclude the page generating this error from the indexing by editing the `files_to_exclude` key of your config.
18
+ I:
17
19
  I:If you think this is an error and your current Algolia plan should allow you to push records bigger than {max_record_size}, you can change the `max_record_size` config option to increase the limit. Paid plans have a limit set to 20Kb, while free Community plans have it set to 10Kb.
18
20
  I:
19
21
  I:The following documentation might help you:
22
+ I:   - https://community.algolia.com/jekyll-algolia/options.html#files-to-exclude
20
23
  I:   - https://community.algolia.com/jekyll-algolia/options.html#nodes-to-index
21
24
  I:   - https://community.algolia.com/jekyll-algolia/options.html#max-record-size
22
25
  I:
@@ -25,7 +25,9 @@ module Jekyll
25
25
  return raw_record if size(raw_record) <= max_size
26
26
 
27
27
  # No excerpt, we can't shrink it
28
- return stop_with_error(raw_record) unless raw_record.key?(:excerpt_html)
28
+ if !raw_record.key?(:excerpt_html) || !raw_record.key?(:excerpt_text)
29
+ return stop_with_error(raw_record)
30
+ end
29
31
 
30
32
  record = raw_record.clone
31
33
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Algolia
5
- VERSION = '1.4.8'
5
+ VERSION = '1.4.9'
6
6
  end
7
7
  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.8
4
+ version: 1.4.9
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-12-07 00:00:00.000000000 Z
11
+ date: 2018-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: algolia_html_extractor