Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/vex-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/products/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/products/single.html b/layouts/products/single.html
index b68f05c..201ccd7 100644
--- a/layouts/products/single.html
+++ b/layouts/products/single.html
@@ -23,7 +23,7 @@
<button class="snipcart-add-item btn btn-main mb-5"
data-item-id="{{.Title | urlize}}__{{if .Params.discount_price}}{{.Params.discount_price}}{{else}}{{.Params.price}}{{end}}"
data-item-name="{{.Title}}"
- data-item-image="{{range first 1 .Params.Images}}{{. | absURL}}{{end}}"
+ data-item-image="{{with .Params.Images}} {{range first 1 . }}{{. | absURL}}{{end}}{{end}}"
data-item-price="{{if .Params.discount_price}}{{.Params.discount_price}}{{else}}{{.Params.price}}{{end}}" data-item-url="{{.Permalink}}"
{{ if .Params.colors }}
data-item-custom1-name="Choose Color"