blob: fcbc90e3a7ed50a99c70112d4e104adad086cb84 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{{ "<!-- SERVICES -->" | safeHTML }}
{{ with .Site.Data.services }}
<section class="section" id="services"
{{ with .background_image }}
style="background-image: url('{{ (printf "images/%s" .) | absURL }}');"
{{ end }}
>
{{ with .title }}
<div class="container-fluid">
<div class="row">
<div class="text-center">
<h2 class="section-heading text-tertiary">{{ . }}</h2>
<hr class="primary">
</div>
</div>
</div>
{{ end }}
<div class="container services-container">
<div class="row">
{{ partial "utils/get-number-columns.html" (dict "length" (len .services) "scratch" $.Scratch) }}
{{ $col_layout := $.Scratch.Get "col_layout" }}
{{ range .services }}
<div class="{{ $col_layout }} text-center">
<div class="service-box">
{{ $pack := or .icon_pack "fa" }}
<i class="{{ $pack }} {{ .icon }} wow bounceIn icon-x6"></i>
<h3>{{ .name }}</h3>
{{ with .text }}
<p>{{ . }}</p>
{{ end }}
{{ if .list }}
<ul>
{{ range .list }}
<li>
{{ . }}
</li>
{{ end }}
</ul>
{{ end }}
</div>
</div>
{{ end }}
{{ $.Scratch.Delete "col_layout" }}
</div>
</div>
</section>
{{ end }}
|