jekyll-bookshop 2.0.0.pre.alpha.10 → 2.0.0.pre.alpha.11
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-bookshop.rb +4 -4
- data/lib/jekyll-bookshop/version.rb +1 -1
- 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: b83f0c00e59a3a11cd3c45a83b827b4746a059767be1b54aba7ca4bad15e6637
|
4
|
+
data.tar.gz: f0e07eaf06e489df91881bfb6fbd56f8aa92fbb703bdd9d00f88f745e6574c16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1531dbce913e222352948952e7ce04061cb384f592174eeddda60e22fe5051c8500726b24e7c3965af0fc881e29d5691cfe30da5fbc46be05ba572797ed020e7
|
7
|
+
data.tar.gz: eca3de9faa109f6b36e228857410e7faa92367a35f863ecbbc3e9585d01b38de5829304f7dc2386612724de082a893877e4e658d5d902e5c49689143bffac898
|
data/lib/jekyll-bookshop.rb
CHANGED
@@ -14,11 +14,11 @@ module JekyllBookshop
|
|
14
14
|
param_hash = {}
|
15
15
|
new_params = {}
|
16
16
|
|
17
|
-
template = params["__template"]
|
18
|
-
return Liquid::Template.parse(template).render(context) if
|
17
|
+
template = params["__template"] || ""
|
18
|
+
return Liquid::Template.parse(template).render(context) if params.key? "__template"
|
19
19
|
|
20
|
-
array_template = params["__array_template"]
|
21
|
-
if
|
20
|
+
array_template = params["__array_template"] || ""
|
21
|
+
if params.key? "__array_template"
|
22
22
|
# We're adding a new root scope here and then removing it.
|
23
23
|
# Who knows why, but assign and capture always add to the root scope.
|
24
24
|
# Which is why this is hacked in, instead of using context.stack 🤷♂️
|