testimonials.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {{ if isset .Site.Params "testimonials" }}
  2. {{ if .Site.Params.testimonials.enable }}
  3. {{ if gt (len .Site.Data.testimonials) 0 }}
  4. <section class="bar background-pentagon no-mb">
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-md-12">
  8. <div class="heading text-center">
  9. <h2>{{ .Site.Params.testimonials.title }}</h2>
  10. </div>
  11. <p class="lead">
  12. {{ .Site.Params.testimonials.subtitle | markdownify }}
  13. </p>
  14. <!-- *** TESTIMONIALS CAROUSEL *** -->
  15. <ul class="owl-carousel testimonials same-height-row"
  16. data-items="{{ default 4 .Site.Params.CarouselTestimonials.items }}"
  17. data-autoplay="{{ default false .Site.Params.CarouselTestimonials.auto_play }}"
  18. data-slide-speed="{{ default 2000 .Site.Params.CarouselTestimonials.slide_speed }}"
  19. data-pagination-speed="{{ default 1000 .Site.Params.CarouselTestimonials.pagination_speed }}">
  20. {{ range .Site.Data.testimonials }}
  21. <li class="item">
  22. <div class="testimonial same-height-always">
  23. <div class="text">
  24. <p>{{ .text | markdownify }}</p>
  25. </div>
  26. <div class="bottom">
  27. <div class="icon"><i class="fas fa-quote-left"></i>
  28. </div>
  29. <div class="name-picture">
  30. <img class="" alt="" src="{{ .avatar | absURL }}">
  31. <h5>{{ .name }}</h5>
  32. <p>{{ .position }}</p>
  33. </div>
  34. </div>
  35. </div>
  36. </li>
  37. {{ end }}
  38. </ul>
  39. <!-- /.owl-carousel -->
  40. <!-- *** TESTIMONIALS CAROUSEL END *** -->
  41. </div>
  42. </div>
  43. </div>
  44. </section>
  45. <!-- /.bar -->
  46. {{ end }}
  47. {{ end }}
  48. {{ end }}