diff options
author | somratpro <abdulmonnafsomrat@gmail.com> | 2020-09-06 12:14:38 +0300 |
---|---|---|
committer | somratpro <abdulmonnafsomrat@gmail.com> | 2020-09-06 12:14:38 +0300 |
commit | c8fbd8be11826e95f06fc73409fe9de01972af4b (patch) | |
tree | a028258379d5baa27a3aa88a5629a568a59398d0 | |
parent | ea05165663e7819b11e6d013d71c4579a1b5f8e3 (diff) | |
parent | 50fd51f5c30e5187577ff28f400f5c5600559a91 (diff) |
Merge branch 'master' of https://github.com/themefisher/vex-hugo
-rw-r--r-- | layouts/products/single.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/products/single.html b/layouts/products/single.html index 8651733..5b610c6 100644 --- a/layouts/products/single.html +++ b/layouts/products/single.html @@ -15,8 +15,8 @@ </div> <div class="col-lg-6 col-md-7 offset-lg-1"> <h1 class="mb-4">{{ .Title }}</h1> - <p><strong>Colors:</strong> {{delimit .Params.colors ", "}}</p> - <p><strong>Sizes:</strong> {{delimit .Params.sizes ", "}}</p> + <p><strong>Colors:</strong> {{ with .Params.colors }}{{ delimit . ", "}}{{ end }}</p> + <p><strong>Sizes:</strong> {{ with .Params.sizes }}{{ delimit . ", "}}{{ end }}</p> <p class="price py-4">{{if .Params.discount_price}}{{site.Params.currency}}{{.Params.discount_price}}{{else}}{{site.Params.currency}}{{.Params.price}}{{end}} {{if .Params.discount_price}}<s class="price">{{site.Params.currency}}{{ .Params.price }}</s>{{end}} </p> @@ -40,4 +40,4 @@ </div> </section> -{{ end }}
\ No newline at end of file +{{ end }} |