From b957fce23cf4d3c89c79512a3e58159ec50a16d2 Mon Sep 17 00:00:00 2001 From: Yves Gatesoupe Date: Fri, 17 Jul 2020 23:58:03 +0200 Subject: [PATCH] changed sponsor term to partner --- .eleventy.js | 8 ++++---- README.md | 12 ++++++------ src/_data/site.json | 2 +- src/_includes/layouts/home.njk | 4 ++-- src/_includes/partials/components/customers.njk | 8 ++++---- src/_includes/partials/components/sponsors.njk | 12 ++++++------ src/images/{sponsors => partners}/logo-copea.png | Bin src/images/{sponsors => partners}/logo-cpe.png | Bin src/images/{sponsors => partners}/logo-ecare.png | Bin src/images/{sponsors => partners}/logo-lesscop.png | Bin src/index.md | 2 +- src/{sponsors => partners}/copea.md | 2 +- src/{sponsors => partners}/cpe.md | 2 +- src/{sponsors => partners}/e-care.md | 2 +- src/{sponsors => partners}/les-scop.md | 2 +- .../components/{_sponsor.scss => _partner.scss} | 4 ++-- src/scss/global.scss | 2 +- 17 files changed, 31 insertions(+), 31 deletions(-) rename src/images/{sponsors => partners}/logo-copea.png (100%) rename src/images/{sponsors => partners}/logo-cpe.png (100%) rename src/images/{sponsors => partners}/logo-ecare.png (100%) rename src/images/{sponsors => partners}/logo-lesscop.png (100%) rename src/{sponsors => partners}/copea.md (53%) rename src/{sponsors => partners}/cpe.md (63%) rename src/{sponsors => partners}/e-care.md (65%) rename src/{sponsors => partners}/les-scop.md (66%) rename src/scss/components/{_sponsor.scss => _partner.scss} (97%) diff --git a/.eleventy.js b/.eleventy.js index 3380c11..99f7361 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -76,12 +76,12 @@ module.exports = function(config) { config.addCollection('customers', collection => { return [...collection.getFilteredByGlob("./src/customers/*.md")] .reverse() - .slice(0, site.maxSponsorPerPage); + .slice(0, site.maxPartnerPerPage); }); - config.addCollection('sponsors', collection => { - return [...collection.getFilteredByGlob("./src/sponsors/*.md")] + config.addCollection('partners', collection => { + return [...collection.getFilteredByGlob("./src/partners/*.md")] .reverse() - .slice(0, site.maxSponsorPerPage); + .slice(0, site.maxPartnerPerPage); }); // Plugins diff --git a/README.md b/README.md index 56a246f..123db2c 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ Fill in the meta information : Then add the member bio or any content -### Customers & Sponsors +### Customers & Partners The two are listed on the home page in different section. There is maximum of four per section, in reversed order regarding the date of addition. @@ -118,12 +118,12 @@ Fill in the meta information : 2. `thumbnail:` the customer brand logo, make sure to place it in the `images/customers/`folder 3. `url:` the customer website -#### Add a new sponsor +#### Add a new partner -In the `sponsors`folder, create a new mardown file `sponsor-name.md`(or copy paste one of the existing files) +In the `partners`folder, create a new mardown file `partner-name.md`(or copy paste one of the existing files) Fill in the meta information : -1. `name:` the brand name of the sponsor -2. `thumbnail:` the sponsor brand logo, make sure to place it in the `images/sponsor/`folder -3. `url:` the sponsor website +1. `name:` the brand name of the partner +2. `thumbnail:` the partner brand logo, make sure to place it in the `images/partner/`folder +3. `url:` the partner website diff --git a/src/_data/site.json b/src/_data/site.json index eb3257a..6f7cb8f 100644 --- a/src/_data/site.json +++ b/src/_data/site.json @@ -20,6 +20,6 @@ "maxPostsPerPage": 5, "maxNewsPerPage": 4, "maxProfilePreview": 3, - "maxSponsorPerPage": 4, + "maxPartnerPerPage": 4, "faviconPath": "/images/favicon.png" } diff --git a/src/_includes/layouts/home.njk b/src/_includes/layouts/home.njk index 1e33d91..750e5fa 100644 --- a/src/_includes/layouts/home.njk +++ b/src/_includes/layouts/home.njk @@ -4,7 +4,7 @@ {% set newsListHeading = newsHeading %} {% set newsListItems = collections.newsFeed %} {% set customersListItems = collections.customers %} -{% set sponsorsListItems = collections.sponsors %} +{% set partnersListItems = collections.partners %} {% block content %}
@@ -13,6 +13,6 @@ {% include "partials/components/presentation.njk" %} {% include "partials/components/customers.njk" %} {% include "partials/components/contact-form.njk" %} - {% include "partials/components/sponsors.njk" %} + {% include "partials/components/partners.njk" %}
{% endblock %} diff --git a/src/_includes/partials/components/customers.njk b/src/_includes/partials/components/customers.njk index 968f684..68413c5 100644 --- a/src/_includes/partials/components/customers.njk +++ b/src/_includes/partials/components/customers.njk @@ -1,10 +1,10 @@ -