jekyll-uj-powertools 1.6.15 → 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 +2 -2
- 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
@@ -59,7 +59,7 @@ module Jekyll
|
|
59
59
|
# Extract the slug from the Jekyll post ID
|
60
60
|
post_id_clean = post.id.gsub(/^\/(\w+)\//, '')
|
61
61
|
slug = post_id_clean.gsub(/^\d{4}-\d{2}-\d{2}-/, '')
|
62
|
-
"/assets/images/blog/
|
62
|
+
"/assets/images/blog/post-#{custom_id}/#{slug}.jpg"
|
63
63
|
when 'image-tag'
|
64
64
|
# Generate image path
|
65
65
|
# Use the custom post.post.id if available, otherwise fall back to extracting from post.id
|
@@ -67,7 +67,7 @@ module Jekyll
|
|
67
67
|
# Extract the slug from the Jekyll post ID
|
68
68
|
post_id_clean = post.id.gsub(/^\/(\w+)\//, '')
|
69
69
|
slug = post_id_clean.gsub(/^\d{4}-\d{2}-\d{2}-/, '')
|
70
|
-
image_path = "/assets/images/blog/
|
70
|
+
image_path = "/assets/images/blog/post-#{custom_id}/#{slug}.jpg"
|
71
71
|
|
72
72
|
# Parse additional options for the image tag
|
73
73
|
image_options = parse_image_options(args[2..-1], context)
|