jekyll-uj-powertools 1.6.14 → 1.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/jekyll-uj-powertools.gemspec +1 -1
- data/lib/tags/post.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3525305db3359ec2b34b99d69681a2189d744d10fb5185ff630a94cfd8b87c24
|
|
4
|
+
data.tar.gz: 4d7141ef6612afdaddb25ff3638d1e0c0a3cd74efc7203803525e442cb2c1e69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88380af684a51309bd99960162fe1f5a058baf32692d5ad2329108982c9a36b3af01e7fe28e67106508d79f6f38fa0a1cc0fad9b8ae7deb6fd566bc30f71eb47
|
|
7
|
+
data.tar.gz: ef8d56dd53a6bcdd604bdd4131ceef33f302dad416c55d703368f6c80b9784926652a8bebf7a33516c13e462b7f6b68b1daa51730ddd2a7c1b0546eb09a7bd84
|
data/lib/tags/post.rb
CHANGED
|
@@ -177,8 +177,8 @@ module Jekyll
|
|
|
177
177
|
# Check standard ID match
|
|
178
178
|
doc.id == post_id_clean ||
|
|
179
179
|
doc.id.include?(post_id_clean) ||
|
|
180
|
-
# Also check if the post has a custom post.id field that matches
|
|
181
|
-
(doc.data['post'] && doc.data['post']['id'] == post_id_clean)
|
|
180
|
+
# Also check if the post has a custom post.id field that matches (convert to string for comparison)
|
|
181
|
+
(doc.data['post'] && doc.data['post']['id'].to_s == post_id_clean)
|
|
182
182
|
end
|
|
183
183
|
return post if post
|
|
184
184
|
end
|
|
@@ -190,8 +190,8 @@ module Jekyll
|
|
|
190
190
|
post = collection.docs.find do |doc|
|
|
191
191
|
(doc.id == post_id_clean ||
|
|
192
192
|
doc.id.include?(post_id_clean) ||
|
|
193
|
-
# Check custom post.id field
|
|
194
|
-
(doc.data['post'] && doc.data['post']['id'] == post_id_clean)) &&
|
|
193
|
+
# Check custom post.id field (convert to string for comparison)
|
|
194
|
+
(doc.data['post'] && doc.data['post']['id'].to_s == post_id_clean)) &&
|
|
195
195
|
doc.data['post']
|
|
196
196
|
end
|
|
197
197
|
return post if post
|