blob: 8aab37368806da7e2ac2d7471a491a7b932c1711 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{{ define "main" }}
<section class="section gallery">
<div class="container">
<div class="row">
<div class="col-12 text-center mb-5">
<h1 class="font-weight-bold">{{.Title}}</h1>
</div>
{{ range (where .Site.RegularPages "Section" "products") }}
<div class="col-lg-3 col-md-4 col-sm-6 mb-4">
<div class="block">
<div class="gallery-overlay">
<a href="{{ .Permalink }}" class="gallery-popup">
<i class="tf-ion-android-open"></i>
</a>
</div>
<img class="img-fluid" src="{{range first 1 .Params.images}}{{.|absURL}}{{end}}" alt="{{.Title}}">
</div>
<div class="product-info">
<h4 class="mb-2">{{.Title}}</h4>
<p class="price">{{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>
</div>
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}
|