diff options
author | Evan <58769763+developer-evan@users.noreply.github.com> | 2020-08-20 07:50:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 07:50:42 +0300 |
commit | 50fd51f5c30e5187577ff28f400f5c5600559a91 (patch) | |
tree | 2f6620fb0df5bef4703594aeb29c65a52e721e4f | |
parent | 20d5b665371d3827cbcebb807843c2fa369ca6fb (diff) | |
parent | f3efaf11b4faab3370204a961fecd1ed4ded0c8c (diff) |
Merge pull request #15 from Craterbrain/patch-1
Update single.html
-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 }} |