{{ if isset .Site.Params "testimonials" }}
{{ if .Site.Params.testimonials.enable }}
{{ if gt (len .Site.Data.testimonials) 0 }}
<section class="bar background-pentagon no-mb">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="heading text-center">
                    <h2>{{ .Site.Params.testimonials.title }}</h2>
                </div>
                <p class="lead text-center" style="margin-bottom: 0;">
                    數位整合行銷
                </p>
                <p class="lead text-center">
                  {{ .Site.Params.testimonials.subtitle | markdownify }}
                </p>

                <!-- *** TESTIMONIALS CAROUSEL *** -->

                <ul class="owl-carousel testimonials same-height-row">
                    {{ range .Site.Data.testimonials }}
                    <li class="item">
                        <div class="testimonial same-height-always" style="height: 400px;">
                            <div class="text">
                                <h5 class="testimonial-title">{{ .name }}</h5>
                                <p class="testimonial-text">{{ .text | markdownify }}</p>
                            </div>
                            <div class="testimonial_imgdiv">
                                <img class="testimonial_img" alt="" src="{{ .avatar | absURL }}">
                            </div>
                        </div>
                    </li>
                    {{ end }}
                </ul>
                <!-- /.owl-carousel -->

                <!-- *** TESTIMONIALS CAROUSEL END *** -->
            </div>

        </div>
        <!-- <div class="testimonials__pro text-center">
            <p>馬上擁有自己的接單客服系統</p>
        </div> -->
        <div class="testimonials__goto__btn text-center" style="margin-top: 0rem;">
            <a href="https://docs.google.com/forms/d/e/1FAIpQLSeygs4xXy-Xxeh2w9rI4zuQNFutLP_71Bwxo5hqqs2Ca-u5VA/viewform" class="btn btn-lg">洽詢專案製作 -></a>
        </div>
    </div>
</section>
<!-- /.bar -->
{{ end }}
{{ end }}
{{ end }}
