shuffle the clients in javascript rather than at build time to get a bit more diversity
This commit is contained in:
parent
ddb3df7127
commit
bf696ef474
@ -6707,6 +6707,12 @@ h5#join-us {
|
|||||||
.home #clients {
|
.home #clients {
|
||||||
background-color: #f7f7f5; }
|
background-color: #f7f7f5; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.client:nth-child(n+7){
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.client-thumb {
|
.client-thumb {
|
||||||
height: 150px;
|
height: 150px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -51,3 +51,6 @@ app.createMapMultiMarker = function(mapId, lat, lng, zoom, markersArray) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=app.js.map
|
//# sourceMappingURL=app.js.map
|
||||||
|
|
||||||
|
|
||||||
|
$('#client-list .column').shuffle();
|
File diff suppressed because one or more lines are too long
@ -102,11 +102,11 @@ layout: home
|
|||||||
<div class="small-12 columns">
|
<div class="small-12 columns">
|
||||||
<h2>Clients</h2>
|
<h2>Clients</h2>
|
||||||
<p>Here are some of the amazing clients we have worked with so far</p>
|
<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">
|
<div id='client-list' class="row small-up-2 medium-up-3 large-up-6">
|
||||||
{% assign clients = site.clients | sample:6 %}
|
{% assign clients = site.clients %}
|
||||||
{% for client in clients %}
|
{% for client in clients %}
|
||||||
<div class="column">
|
<div class="column client">
|
||||||
<div class="client-thumb" style="background-image: url(/images/clients/{{ client.slug }})"></div>
|
<div class="client-thumb" style='background-image: url(/images/clients/{{ client.slug }}') title="{{client.slug}}"></div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user