fix customer / partner display limited to 4 elements

This commit is contained in:
Yves Gatesoupe 2020-11-13 17:53:09 +01:00
parent d8a3a7bc8f
commit 1579335f12
3 changed files with 4 additions and 3 deletions

View File

@ -77,7 +77,7 @@ module.exports = function(config) {
config.addCollection('customers', collection => {
return [...collection.getFilteredByGlob("./src/customers/*.md")]
.reverse()
.slice(0, site.maxPartnerPerPage);
.slice(0, site.maxCustomerPerPage);
});
config.addCollection('partners', collection => {
return [...collection.getFilteredByGlob("./src/partners/*.md")]

View File

@ -22,6 +22,7 @@
"maxPostsPerPage": 5,
"maxNewsPerPage": 4,
"maxProfilePreview": 3,
"maxPartnerPerPage": 4,
"maxCustomerPerPage": 8,
"maxPartnerPerPage": 8,
"faviconPath": "/images/favicon.png"
}

View File

@ -21,7 +21,6 @@
grid-template-rows: 1fr;
grid-column-gap: 1.5rem;
grid-row-gap: 0;
margin-bottom: 2rem;
}
&__list-item {
@ -29,6 +28,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 3rem;
img {
max-width: 8rem;