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

services.html « sections « partials « layouts - github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 923766c62dbc1ba102d93790807507e80062258c (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" .) | relURL }}');"
            {{ 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 }}