5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-24 23:53:07 +00:00

Show 6 random clients on homepage

Showing all of the client logos adds a considerable amount to the page
weight of the page. This change shows 6 random clients. It will be
re-generated each time the page is deployed, which might be OK for
now, although we could add timed pipeline to keep this fresh/fair.
This commit is contained in:
Chris Lowis 2018-11-29 17:22:09 +00:00
parent 95aec4f04c
commit 6d12b87675

View File

@ -99,7 +99,8 @@ layout: home
<h2>Clients</h2>
<p>Here are some of the amazing clients we have worked with so far</p>
<div class="row small-up-2 medium-up-3 large-up-6">
{% for client in site.clients %}
{% assign clients = site.clients | sample:6 %}
{% for client in clients %}
<div class="column">
<div class="client-thumb" style="background-image: url(/images/clients/{{ client.slug }}.png)"></div>
</div>