diff options
author | Adrian Moreno <adrian@morenomartinez.com> | 2016-06-19 19:14:56 +0300 |
---|---|---|
committer | Adrian Moreno <adrian@morenomartinez.com> | 2016-06-19 19:14:56 +0300 |
commit | 6f03f59987e26415b0c49b2f74fa9cad0792f802 (patch) | |
tree | 50d2fb0f17481fcf780e9871be8952cf021ce5cc /layouts/partials/clients.html | |
parent | 8428bc1a7ee2c9f583c6df9f4d0d1543f946b211 (diff) |
Makes testimonials and clients configurable
Diffstat (limited to 'layouts/partials/clients.html')
-rw-r--r-- | layouts/partials/clients.html | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/layouts/partials/clients.html b/layouts/partials/clients.html index 9ab5f29..f67e41c 100644 --- a/layouts/partials/clients.html +++ b/layouts/partials/clients.html @@ -1,3 +1,5 @@ +{{ if isset .Site.Params "clients" }} +{{ if gt (len .Site.Params.clients) 0 }} <section class="bar background-gray no-mb"> <div class="container"> <div class="row"> @@ -5,26 +7,12 @@ <div class="heading text-center"> <h2>Our clients</h2> </div> - <ul class="owl-carousel customers"> + {{ range .Site.Params.clients }} <li class="item"> - <img src="img/customer-1.png" alt="" class="img-responsive"> - </li> - <li class="item"> - <img src="img/customer-2.png" alt="" class="img-responsive"> - </li> - <li class="item"> - <img src="img/customer-3.png" alt="" class="img-responsive"> - </li> - <li class="item"> - <img src="img/customer-4.png" alt="" class="img-responsive"> - </li> - <li class="item"> - <img src="img/customer-5.png" alt="" class="img-responsive"> - </li> - <li class="item"> - <img src="img/customer-6.png" alt="" class="img-responsive"> + <img src="{{ .image }}" alt="{{ .name }}" class="img-responsive"> </li> + {{ end }} </ul> <!-- /.owl-carousel --> </div> @@ -32,3 +20,5 @@ </div> </div> </section> +{{ end }} +{{ end }} |