jekyll-linked-posts 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll/linked_posts.rb +3 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f93e87d40ed284d13bb31784c5b2d11684cca725444dd94d3cb9e264ce3b394
4
- data.tar.gz: a2fbc7b95e5746b654ec59a32d73a30e693eb787955f3e9938b7a753c6c7661f
3
+ metadata.gz: f33a1274ec184b4bc5cf5b9c7317303469d5d6ef479516d61e010763afd299b9
4
+ data.tar.gz: 75ed922deb0dc1fc5e2fa85abc2e535c511e02fabda4598d70c70bd0cd4b3306
5
5
  SHA512:
6
- metadata.gz: d955d83efd3a820eabb360c0c2472d77ec30fd143dafb982db43c479ecb2df7aed7e9d17edf1df43155dac6fe3f0951f2b25050458902c53b986d44655dac4a9
7
- data.tar.gz: 5aedb476f2dc7e2c8d66a519279ec6c9904c9273b7c196d8cfb16b1b665c1794bcc61e74d7c560b62ba72e2bfaf85a5ccd4d6d4cbb0026c922ce8d1bb0245c52
6
+ metadata.gz: a151129dac5c6e6daa99386e6c97ab420cc2e5a6ed63d220f7628d058eed48c3702bb4597938e0601998cb116a9339b6d4404a67c3c28e37120df2a5c9328e35
7
+ data.tar.gz: b26e964cda97e97c6a4ca571b4e59de63b4cf25021af5920420e8e1d87f8c48075fb78eab98a917319abb9256262eec3b06073dcd66913f5dc0f3ecb6e58e714
@@ -114,6 +114,9 @@ module Jekyll
114
114
  #
115
115
  # @return [Jekyll::Document,Nil]
116
116
  def find(value)
117
+ return value if value.is_a? Jekyll::Document
118
+ return value if value.is_a? Jekyll::Page
119
+
117
120
  indexed_documents[value].tap do |i|
118
121
  Jekyll.logger.warn "#{value} couldn't be found" if i.nil?
119
122
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-linked-posts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-02 00:00:00.000000000 Z
11
+ date: 2023-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll