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

testimonialSection.html « partials « layouts - github.com/StaticMania/portio-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1d897e1123f9173ecaba57e8597d526d84782c10 (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
{{ with .Site.Data.testimonialSection }}
{{ if .enable }}
<section class="section testimonial">
    <div class="testimonial__background_shape">
        <svg viewBox="0 0 1920 79">
            <path d="M0 0h1920v79L0 0z" data-name="Path 1450" />
        </svg>
    </div>
    <div class="container">
        <div class="row text-center">
            <div class="col-lg-6 offset-lg-3">
                <div class="testimonial__header">
                    <span>{{ .topTitle }}</span>
                    <h1>{{ .title }}</h1>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="testimonial__slider">
                    {{ $section := .testimonial }}
                    {{ range $section }}
                    <div class="testimonial__slider_item">
                        {{ if .star }}
                        <ul class="testimonial__slider_item-rating">
                            {{ $rating := .star | int }}
                            {{ $rating := sub $rating 1 }}
                            {{ range $i, $sequence := (seq 5) }}
                            {{ if le $i $rating }}
                            <li><i class="fa fa-star"></i></li>
                            {{ else }}
                            <li><i class="fa fa-star inactive"></i></li>
                            {{ end }}
                            {{ end }}
                        </ul>
                        {{ end }}
                        <p class="testimonial__slider_item-content"> {{ .comment | markdownify }} </p>
                        <p class="testimonial__slider_item-author"><span>{{ .name }}</span> | {{ .time }}</p>
                    </div>
                    {{ end }}
                </div>
            </div>
        </div>
    </div>
</section>
{{ end }}
{{ end }}