diff --git a/.eleventy.js b/.eleventy.js
index 4fab91b..33b661b 100644
--- a/.eleventy.js
+++ b/.eleventy.js
@@ -76,6 +76,11 @@ module.exports = function(config) {
.reverse()
.slice(0, site.maxSponsorPerPage);
});
+ config.addCollection('sponsors', collection => {
+ return [...collection.getFilteredByGlob("./src/sponsors/*.md")]
+ .reverse()
+ .slice(0, site.maxSponsorPerPage);
+ });
// Plugins
config.addPlugin(rssPlugin);
diff --git a/src/_includes/layouts/home.njk b/src/_includes/layouts/home.njk
index 14e556d..3b19cb0 100644
--- a/src/_includes/layouts/home.njk
+++ b/src/_includes/layouts/home.njk
@@ -4,6 +4,7 @@
{% set newsListHeading = newsHeading %}
{% set newsListItems = collections.newsFeed %}
{% set customersListItems = collections.customers %}
+{% set sponsorsListItems = collections.sponsors %}
{% block content %}
@@ -11,8 +12,8 @@
{% include "partials/components/posts-list-home.njk" %}
{% include "partials/components/post-list.njk" %}
{% include "partials/components/presentation.njk" %}
- {% include "partials/components/sponsor.njk" %}
+ {% include "partials/components/customers.njk" %}
{% include "partials/components/contact-form.njk" %}
- {% include "partials/components/sponsor.njk" %}
+ {% include "partials/components/sponsors.njk" %}
{% endblock %}
diff --git a/src/_includes/partials/components/sponsor.njk b/src/_includes/partials/components/customers.njk
similarity index 88%
rename from src/_includes/partials/components/sponsor.njk
rename to src/_includes/partials/components/customers.njk
index b406795..968f684 100644
--- a/src/_includes/partials/components/sponsor.njk
+++ b/src/_includes/partials/components/customers.njk
@@ -1,6 +1,6 @@