changed sponsor term to partner

This commit is contained in:
Yves Gatesoupe 2020-07-17 23:58:03 +02:00
parent 6f229920e2
commit b957fce23c
17 changed files with 31 additions and 31 deletions

View File

@ -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

View File

@ -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

View File

@ -20,6 +20,6 @@
"maxPostsPerPage": 5,
"maxNewsPerPage": 4,
"maxProfilePreview": 3,
"maxSponsorPerPage": 4,
"maxPartnerPerPage": 4,
"faviconPath": "/images/favicon.png"
}

View File

@ -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 %}
<main id="main-content" class="home" tabindex="-1">
@ -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" %}
</main>
{% endblock %}

View File

@ -1,10 +1,10 @@
<section class="[ sponsor ]">
<section class="[ partner ]">
<div class="[ wrapper ]">
<p class="[ sponsor__heading ]">{{ customersHeading }}</p>
<p class="[ partner__heading ]">{{ customersHeading }}</p>
{% if customersListItems.length %}
<ol class="[ sponsor__list ]">
<ol class="[ partner__list ]">
{% for item in customersListItems %}
<li class="sponsor__list-item">
<li class="partner__list-item">
<a href="{{ item.data.url }}" title="{{ item.data.name }}" target="_blank">
<img src="{{ item.data.thumbnail }}" alt="logo de {{ item.data.name }}">
</a>

View File

@ -1,10 +1,10 @@
<section class="[ sponsor ]">
<section class="[ partner ]">
<div class="[ wrapper ]">
<p class="[ sponsor__heading ]">{{ sponsorsHeading }}</p>
{% if sponsorsListItems.length %}
<ol class="[ sponsor__list ]">
{% for item in sponsorsListItems %}
<li class="sponsor__list-item">
<p class="[ partner__heading ]">{{ partnersHeading }}</p>
{% if partnersListItems.length %}
<ol class="[ partner__list ]">
{% for item in partnersListItems %}
<li class="partner__list-item">
<a href="{{ item.data.url }}" title="{{ item.data.name }}" target="_blank">
<img src="{{ item.data.thumbnail }}" alt="logo de {{ item.data.name }}">
</a>

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -4,6 +4,6 @@ title: Accueil
brandHeading: La Coopérative d'Activité et d'Emploi spécialisée en informatique !
newsHeading: Actualité & Évenements
customersHeading: Ils nous font confiance
sponsorsHeading: Nos partenaires
partnersHeading: Nos partenaires
metaDesc: 'Hylia is a lightweight Eleventy starter kit to help you to create your own blog or personal website.'
---

View File

@ -1,5 +1,5 @@
---
name: 'Copea'
thumbnail: '/images/sponsors/logo-copea.png'
thumbnail: '/images/partners/logo-copea.png'
url: 'https://www.copea.fr/'
---

View File

@ -1,5 +1,5 @@
---
name: 'Coopérer pour entreprendre'
thumbnail: '/images/sponsors/logo-cpe.png'
thumbnail: '/images/partners/logo-cpe.png'
url: 'https://cooperer.coop/'
---

View File

@ -1,5 +1,5 @@
---
name: 'e-care expertise comptable & innovation'
thumbnail: '/images/sponsors/logo-ecare.png'
thumbnail: '/images/partners/logo-ecare.png'
url: 'http://www.e-care.fr/'
---

View File

@ -1,5 +1,5 @@
---
name: 'Les Scop sociétés coopératives'
thumbnail: '/images/sponsors/logo-lesscop.png'
thumbnail: '/images/partners/logo-lesscop.png'
url: 'https://www.les-scop.coop/sites/fr/'
---

View File

@ -1,4 +1,4 @@
.sponsor {
.partner {
background-color: var(--color-light-gray);
.wrapper {
@ -37,7 +37,7 @@
}
@media (max-width: 767.98px) {
.sponsor {
.partner {
&__list {
display: flex;
overflow-x: auto;

View File

@ -72,7 +72,7 @@ img {
@import 'components/presentation';
@import 'components/site-head';
@import 'components/site-foot';
@import 'components/sponsor';
@import 'components/partner';
@import 'components/skip-link';
@import 'components/video-player';
@import 'utilities/responsive';