clients.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{ if isset .Site.Params "clients" }}
  2. {{ if .Site.Params.clients.enable }}
  3. {{ if gt (len .Site.Data.clients) 0 }}
  4. <section class="bar background-gray 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.clients.title | markdownify }}</h2>
  10. </div>
  11. <p class="lead">
  12. {{ .Site.Params.clients.subtitle | markdownify }}
  13. </p>
  14. <ul class="owl-carousel customers"
  15. data-items="{{ default 6 .Site.Params.CarouselCustomers.items }}"
  16. data-autoplay="{{ default false .Site.Params.CarouselCustomers.auto_play }}"
  17. data-slide-speed="{{ default 2000 .Site.Params.CarouselCustomers.slide_speed }}"
  18. data-pagination-speed="{{ default 1000 .Site.Params.CarouselCustomers.pagination_speed }}">
  19. {{ range .Site.Data.clients }}
  20. <li class="item" title="{{ .name }}">
  21. {{ if .url }}
  22. <a href="{{ .url }}" target="_blank">
  23. <img src="{{ .image }}" alt="{{ .name }}" class="img-responsive" />
  24. </a>
  25. {{ else }}
  26. <img src="{{ .image }}" alt="{{ .name }}" class="img-responsive" />
  27. {{ end }}
  28. </li>
  29. {{ end }}
  30. </ul>
  31. <!-- /.owl-carousel -->
  32. </div>
  33. </div>
  34. </div>
  35. </section>
  36. {{ end }}
  37. {{ end }}
  38. {{ end }}