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.
- checksums.yaml +4 -4
- data/lib/jekyll/linked_posts.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f33a1274ec184b4bc5cf5b9c7317303469d5d6ef479516d61e010763afd299b9
|
4
|
+
data.tar.gz: 75ed922deb0dc1fc5e2fa85abc2e535c511e02fabda4598d70c70bd0cd4b3306
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a151129dac5c6e6daa99386e6c97ab420cc2e5a6ed63d220f7628d058eed48c3702bb4597938e0601998cb116a9339b6d4404a67c3c28e37120df2a5c9328e35
|
7
|
+
data.tar.gz: b26e964cda97e97c6a4ca571b4e59de63b4cf25021af5920420e8e1d87f8c48075fb78eab98a917319abb9256262eec3b06073dcd66913f5dc0f3ecb6e58e714
|
data/lib/jekyll/linked_posts.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2023-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|