jekyll-svelte-slabs 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a4cdf5dc8a01e002345bb2d59e03da9c234648abb4aaa90766362f850e6bd7c
4
- data.tar.gz: ab0981d0fb1899504f634d718918f09fbc4b174dae72b668cae7d930a8412d54
3
+ metadata.gz: db84f3469a649ec9c6b49fd7251b7c70103c1172a35277c9af1bdcb8e9aecb81
4
+ data.tar.gz: 93689a31bca7742554559864c8f909bd49999ee5265f3c893796aa9f889e6e67
5
5
  SHA512:
6
- metadata.gz: f53a642871ce00651d1d64d3d6f88b96a5ab7040b1471c8af52a2e51423c26547100e1892118694a8a946bfcc9d6054393b2fa405f5f1c7ec4e97ba09d3bd12b
7
- data.tar.gz: a3011c2540a15fca0dd91fedebe940076a3eb0e480543f0a2c3068ac3921b7053450e8093e74e70e98653010392370e06904e6655af2eb686c6469b287f6a41a
6
+ metadata.gz: 398cf87b7c2f1a1f5626943c4713d6471135d468bfba61f6911062b2ef7bb311bbb6f948a94819f7330943130826f7cba3e37de0faa56f1434246e396695ec07
7
+ data.tar.gz: 0db8c430fb82a25ee89da3e02e4295d469735b976713565dce7aeaa4cbc71d6be2c2d790b0d0d86a843d4cdad95656a8e41a10bf9dba335a16c166deaa5a3cb0
@@ -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
@@ -1,3 +1,3 @@
1
1
  module JekyllSvelteSlabs
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  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.3
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: 2020-12-08 00:00:00.000000000 Z
11
+ date: 2021-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll