jekyll-algolia 1.7.0 → 1.7.1

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: 8e25f44ea863e7df956f7629ec0ef140576f01166f1dc1db15c4592d8131e517
4
- data.tar.gz: 4c01bab60fb28d44ef99520c5f622991590d1a17311ac4957c01674fb3d6261c
3
+ metadata.gz: 1c7f25e93449e7de0ed0ca453837ee37d2ad17ce0910b058f55f278ebe7dca83
4
+ data.tar.gz: 7993b1bae0c39e33cb39638b7b6d258be8bb7ffa79f61e21817b701e7aa5256c
5
5
  SHA512:
6
- metadata.gz: e8807f6ff30a1d02cdcccdfcfb2a39631880930777ab2ceb10bb1e4115d820b1846ccadd67c69195e2c12bdf4c6787519f6441133f8bd868da423b37e584d8ff
7
- data.tar.gz: cd55421b501dfba4bae6e25e2d3b0776f74ef9e94f8e72bf74c6e1a5ab4faea514388eaca830dd16c33b3dd029ea8267874a56e4a66c25a79e9ed917470972b4
6
+ metadata.gz: 6e2021dca64a85cfbc2496a4f1b88cd73ccdf1202bfb190edfdaabd27bcb503b52e063152409fee5c56edf9a243ef410a3be1469e128b356505081ed2bb6b11b
7
+ data.tar.gz: be2e802a61c162846d4eb8760239fed3767618391caff853a73f25a1f978acb5678ad394c3fe4f5c3ccac13d5d35ee63d0a267530da0228806de165e6c311fe4
@@ -5,9 +5,10 @@ module Jekyll
5
5
  class Document
6
6
  # By default, Jekyll will set the current date (time of build) to any
7
7
  # collection item. This will break our diff algorithm, so we monkey patch
8
- # this call to return nil if no date is defined instead.
8
+ # this call to return nil if no date is defined and the file is not a
9
+ # draft instead.
9
10
  def date
10
- data['date'] || nil
11
+ data["date"] ||= (draft? ? source_file_mtime : nil)
11
12
  end
12
13
  end
13
14
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Algolia
5
- VERSION = '1.7.0'
5
+ VERSION = '1.7.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Carry
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-05-06 00:00:00.000000000 Z
12
+ date: 2021-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: algolia_html_extractor