jekyll-svelte-slabs 0.0.3 → 0.0.4
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/lib/jekyll-svelte-slabs.rb +6 -0
- data/lib/jekyll-svelte-slabs/version.rb +1 -1
- 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: db84f3469a649ec9c6b49fd7251b7c70103c1172a35277c9af1bdcb8e9aecb81
|
|
4
|
+
data.tar.gz: 93689a31bca7742554559864c8f909bd49999ee5265f3c893796aa9f889e6e67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 398cf87b7c2f1a1f5626943c4713d6471135d468bfba61f6911062b2ef7bb311bbb6f948a94819f7330943130826f7cba3e37de0faa56f1434246e396695ec07
|
|
7
|
+
data.tar.gz: 0db8c430fb82a25ee89da3e02e4295d469735b976713565dce7aeaa4cbc71d6be2c2d790b0d0d86a843d4cdad95656a8e41a10bf9dba335a16c166deaa5a3cb0
|
data/lib/jekyll-svelte-slabs.rb
CHANGED
|
@@ -73,6 +73,12 @@ module JekyllSvelteSlabs
|
|
|
73
73
|
elsif variable
|
|
74
74
|
context[variable]
|
|
75
75
|
end
|
|
76
|
+
|
|
77
|
+
# Turn arrays of Documents into arrays of DocumentDrops
|
|
78
|
+
# so that the to_json in render pulls the hash not the content
|
|
79
|
+
if value.class == Array
|
|
80
|
+
value = value.map {|v| v.class == Jekyll::Document ? v.to_liquid : v}
|
|
81
|
+
end
|
|
76
82
|
|
|
77
83
|
params[key] = value
|
|
78
84
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-svelte-slabs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Liam Bigelow
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|