diff --git a/.eleventy.js b/.eleventy.js index 869a91c..95ccb7f 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,6 +1,7 @@ const rssPlugin = require('@11ty/eleventy-plugin-rss'); const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight'); const fs = require('fs'); +const util = require('util') // Import filters const dateFilter = require('./src/filters/date-filter.js'); @@ -19,6 +20,9 @@ module.exports = function(config) { config.addFilter('dateFilter', dateFilter); config.addFilter('markdownFilter', markdownFilter); config.addFilter('w3DateFilter', w3DateFilter); + config.addFilter('dump', obj => { + return util.inspect(obj) + }); // Layout aliases config.addLayoutAlias('home', 'layouts/home.njk'); @@ -77,24 +81,35 @@ module.exports = function(config) { config.addCollection("tagsList", function(collectionApi) { const tagsList = new Set(); collectionApi.getAll().map( item => { - if (item.data.tags) { // handle pages that don't have tags - item.data.tags.map( tag => tagsList.add(tag)) - } - }); - return tagsList; + if (item.data.tags) { // handle pages that don't have tags + item.data.tags.map( tag => tagsList.add(tag)) + } + }); + return tagsList; }); config.addCollection("skillsList", function(collectionApi) { const skillsList = new Set(); collectionApi.getFilteredByGlob("./src/members/*.md").map( item => { - if (item.data.tags) { // handle pages that don't have skills - item.data.tags.map( skill => { // exclude non related tags - if (['post', 'news', 'event'].indexOf(skill) == -1) { - skillsList.add(skill) - } - }) - } - }); - return skillsList; + if (item.data.tags) { // handle pages that don't have skills + item.data.tags.map( skill => { // exclude non related tags + if (['post', 'news', 'event'].indexOf(skill) == -1) { + skillsList.add(skill) + } + }) + } + }); + return skillsList; + }); + config.addCollection("membersLocations", function(collectionApi) { + return collectionApi.getFilteredByGlob("./src/members/*.md") + .filter(item => typeof item.data.location !== 'undefined') + .map( member => { + return { + name: member.data.name, + url: member.data.url, + location: member.data.location, + }; + }); }); config.addCollection('customers', collection => { return [...collection.getFilteredByGlob("./src/customers/*.md")] diff --git a/src/_includes/layouts/team.njk b/src/_includes/layouts/team.njk index b71fe13..608fa49 100644 --- a/src/_includes/layouts/team.njk +++ b/src/_includes/layouts/team.njk @@ -7,7 +7,6 @@

{{ teamListHeading }}

{{ content | safe }} - {% include "partials/components/map.njk" %}

{{ tagSearchHeading }}

{% include "partials/components/member-list.njk" %} + {% include "partials/components/map.njk" %} {% include "partials/components/contact-form.njk" %} diff --git a/src/_includes/partials/components/map.njk b/src/_includes/partials/components/map.njk index 9e6c40b..721f3e6 100644 --- a/src/_includes/partials/components/map.njk +++ b/src/_includes/partials/components/map.njk @@ -1,44 +1,50 @@ -

Où sommes-nous ?

+
+

Où sommes-nous ?

+
- diff --git a/src/images/marker-logo-alt.svg b/src/images/marker-logo-alt.svg new file mode 100644 index 0000000..be2ef7b --- /dev/null +++ b/src/images/marker-logo-alt.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/images/marker-stroke.svg b/src/images/marker-stroke.svg new file mode 100644 index 0000000..0001bf3 --- /dev/null +++ b/src/images/marker-stroke.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/images/marker.svg b/src/images/marker.svg deleted file mode 100644 index e0fd32f..0000000 --- a/src/images/marker.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/members/jean-christophe-piriou.md b/src/members/jean-christophe-piriou.md index c563bb1..ace2f14 100644 --- a/src/members/jean-christophe-piriou.md +++ b/src/members/jean-christophe-piriou.md @@ -6,6 +6,7 @@ date: '2020-12-01' profile: '/images/profiles/jcp-profile.jpg' socialLinkedin: 'https://www.linkedin.com/in/piriou-jean-christophe-9bb4bb3b/' url: '/members/jean-christophe-piriou' +location: [43.610632310943636, 3.873482372219893] --- Je suis ingénieur conseil auprès des collectivités dans le domaine de l’eau et l’aménagement du territoire ainsi que Product Owner de la solution informatique NAEGA que je co-développe avec mes collègues des CAE. diff --git a/src/members/yves-gatesoupe.md b/src/members/yves-gatesoupe.md index 78e67fe..bbd3849 100644 --- a/src/members/yves-gatesoupe.md +++ b/src/members/yves-gatesoupe.md @@ -12,6 +12,7 @@ tags: - html - design - dev +location: [48.11190001620403, -1.6902243050121242] --- Je suis développeur web indépendant depuis janvier 2020. diff --git a/src/team-skills.njk b/src/team-skills.njk index 26ca926..05a897e 100644 --- a/src/team-skills.njk +++ b/src/team-skills.njk @@ -32,6 +32,7 @@ permalink: /equipe/{{ tag }}/
Voir tous les membres
+ {% include "partials/components/map.njk" %} {% include "partials/components/contact-form.njk" %} {% endblock %}