diff options
Diffstat (limited to 'layouts/partials/testimonials.html')
-rw-r--r-- | layouts/partials/testimonials.html | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/layouts/partials/testimonials.html b/layouts/partials/testimonials.html index 9fd7854..0ea0cad 100644 --- a/layouts/partials/testimonials.html +++ b/layouts/partials/testimonials.html @@ -1,14 +1,16 @@ -{{ if site.Data.homepage.testimonial.enable }} +{{ $data := index .Site.Data .Site.Language.Lang }} + +{{ if $data.homepage.testimonial.enable }} <section class="testimonials section" id="testimonial"> <div class="container"> - {{ with site.Data.homepage.testimonial }} + {{ with $data.homepage.testimonial }} <div class="row justify-content-center"> <div class="col-12"> <div class="heading"> <h2>{{ .title | markdownify }}</h2> </div> </div> - {{ range .testimonialItem }} + {{ range .testimonial_item }} <div class="col-lg-4 col-sm-6 mb-5 mb-lg-0 text-center"> <div class="testimonial-block"> <i class="tf-ion-quote"></i> @@ -23,18 +25,6 @@ {{ end }} </div> {{ end }} - <div class="row mt-100"> - <div class="col-md-12 text-center"> - <button class="snipcart-add-item btn btn-main" {{with site.Data.homepage.product }} - data-item-id="{{ .name | urlize }}__{{ .price }}" data-item-name="{{ .name }}" - data-item-image="{{ .image | absURL }}" data-item-price="{{ .price }}" data-item-url="{{ .Permalink }}" - {{ if .colors }} data-item-custom1-name="Choose Color" - data-item-custom1-options="{{ range $index, $element:= .colors }}{{ if eq $index 0 }}{{ . | title }}{{ else }}|{{ . | title }}{{ end }}{{ end }}" - {{ end }} {{ if .sizes }} data-item-custom2-name="Choose Size" - data-item-custom2-options="{{ range $index, $element:= .sizes }}{{ if eq $index 0 }}{{ . | title }}{{ else }}|{{ . | title }}{{ end }}{{ end }}" - {{ end }}{{ end }}>Grab You Product Now</button> - </div> - </div> </div> </section> {{ end }}
\ No newline at end of file |