jekyll-bookshop 2.0.0.pre.beta.37 → 2.0.0.pre.beta.41

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: 6576424ac3c1718aa1d60c787974f59d7cb39b0f61e542a47f5002f787d98c7c
4
- data.tar.gz: fdccfd5d91ded1f751b9f242363a40cd82ef891408fc131213f81cc3f9bb49dc
3
+ metadata.gz: 17a9002ba6b0bcfc74ede17d2d63f0e51048b6a6503fc330ad1b56bad3c7f584
4
+ data.tar.gz: 632fee3e1e06a0a4efa58119d779d39014016dd39595001fd952f04830aa8777
5
5
  SHA512:
6
- metadata.gz: a99516c9484d19f58ca40a2723186e6291e34d7ff9afd59b3dd1d58afdd042840018e0902bc90785e598c6dc5b6e7f5b143c165d23ab94f98b8917b704440c52
7
- data.tar.gz: f8203bba2a6bf630721ac349f4985891b025994d5471cf79074b38b3be78c01b87e50247fb52c3d5884f8346c3047779ca5f20c8f9129bfc19e0d4ffe490a5d5
6
+ metadata.gz: 224319a18afa2c24532d3a5519c08918eff9d501c42182a376fa2472438f67b6796c792a1278c865d7c44c21dff085a79ca38e09f35bbdc51a362110343d2924
7
+ data.tar.gz: b6bec1ede1cd39a051c22c197ffdd14e2e9e263f30f8bd07ac192bba732dd97ec8208e92723cb1e59494d72fb04c2ce144d1e2abb4801aa9d105667ddc1a473b
@@ -30,10 +30,19 @@ module JekyllBookshop
30
30
 
31
31
  partial = load_cached_partial(path, context)
32
32
 
33
+ loop_context = ""
34
+ if context.scopes[0]["forloop"]
35
+ name = context.scopes[0]["forloop"].name
36
+ index = context.scopes[0]["forloop"].index - 1
37
+ loop_context = "#{name}[#{index}]"
38
+ end
39
+
33
40
  context.stack do
34
41
  context["include"] = parse_params(context) if @params
35
42
  begin
36
- partial.render!(context)
43
+ "<!--bookshop-live name(#{file}) params(#{@params}) context(#{loop_context.gsub(/-/, '=').gsub(/=include\./, '=')}) -->
44
+ #{partial.render!(context)}
45
+ <!--bookshop-live end-->"
37
46
  rescue Liquid::Error => e
38
47
  e.template_name = path
39
48
  e.markup_context = "included " if e.markup_context.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllBookshop
4
- VERSION = "2.0.0.pre.beta.37"
4
+ VERSION = "2.0.0.pre.beta.41"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-bookshop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.beta.37
4
+ version: 2.0.0.pre.beta.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudCannon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-03 00:00:00.000000000 Z
11
+ date: 2021-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll