From cbe1ce662634b6050379b6d2ecb5aa92e1d63ffc Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 18 Mar 2024 13:10:30 +0100 Subject: [PATCH 1/3] fix(seo): avoid redirect to uncrawl pages without trailing slash --- src/_includes/layouts/member.njk | 4 ++-- src/_includes/layouts/post.njk | 2 +- src/_includes/layouts/posts-events.njk | 6 +++--- src/_includes/layouts/posts-news.njk | 6 +++--- src/_includes/layouts/posts.njk | 6 +++--- src/_includes/layouts/team.njk | 2 +- src/_includes/partials/components/intro.njk | 6 +++--- src/_includes/partials/components/map.njk | 2 +- src/_includes/partials/components/member-list-simple.njk | 2 +- src/_includes/partials/components/member-list.njk | 4 ++-- src/_includes/partials/components/posts-list-home.njk | 2 +- src/_includes/partials/components/presentation.njk | 6 +++--- src/_includes/partials/global/site-foot.njk | 4 ++-- src/team-skills.njk | 4 ++-- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/_includes/layouts/member.njk b/src/_includes/layouts/member.njk index 47dbf02..2f19950 100644 --- a/src/_includes/layouts/member.njk +++ b/src/_includes/layouts/member.njk @@ -42,7 +42,7 @@ @@ -50,7 +50,7 @@ - Voir tous les membres + Voir tous les membres {% include "partials/components/contact-form.njk" %} diff --git a/src/_includes/layouts/post.njk b/src/_includes/layouts/post.njk index 721b87c..209b61d 100644 --- a/src/_includes/layouts/post.njk +++ b/src/_includes/layouts/post.njk @@ -12,7 +12,7 @@ illustration de l'article {% endif %} {{ content | safe }} - Voir toute l'actualité + Voir toute l'actualité {% include "partials/components/contact-form.njk" %} diff --git a/src/_includes/layouts/posts-events.njk b/src/_includes/layouts/posts-events.njk index 987ec5e..bad3906 100644 --- a/src/_includes/layouts/posts-events.njk +++ b/src/_includes/layouts/posts-events.njk @@ -8,13 +8,13 @@

{{ pageHeading }}

diff --git a/src/_includes/layouts/posts-news.njk b/src/_includes/layouts/posts-news.njk index 58073e3..bd9798f 100644 --- a/src/_includes/layouts/posts-news.njk +++ b/src/_includes/layouts/posts-news.njk @@ -8,13 +8,13 @@

{{ pageHeading }}

diff --git a/src/_includes/layouts/posts.njk b/src/_includes/layouts/posts.njk index 710800e..c114f26 100644 --- a/src/_includes/layouts/posts.njk +++ b/src/_includes/layouts/posts.njk @@ -8,13 +8,13 @@

{{ pageHeading }}

diff --git a/src/_includes/layouts/team.njk b/src/_includes/layouts/team.njk index 7c8b013..c82829d 100644 --- a/src/_includes/layouts/team.njk +++ b/src/_includes/layouts/team.njk @@ -13,7 +13,7 @@ diff --git a/src/_includes/partials/components/intro.njk b/src/_includes/partials/components/intro.njk index f305d52..50e7b01 100644 --- a/src/_includes/partials/components/intro.njk +++ b/src/_includes/partials/components/intro.njk @@ -3,11 +3,11 @@

{{ brandHeading }}

- Une CAE c'est quoi ? - Nous rejoindre + Une CAE c'est quoi ? + Nous rejoindre - Notre flyer 📄 + Notre flyer 📄
diff --git a/src/_includes/partials/components/map.njk b/src/_includes/partials/components/map.njk index fd1ba7d..bb27b44 100644 --- a/src/_includes/partials/components/map.njk +++ b/src/_includes/partials/components/map.njk @@ -30,7 +30,7 @@ var members = {{ collections.membersLocations | dump | safe }}; var markerGroup = members.map( member => { - return new L.marker(member.location, {icon: iconMarker}).bindPopup(''+member.name+''); + return new L.marker(member.location, {icon: iconMarker}).bindPopup(''+member.name+''); }); var markerSiege = L.marker([48.10494125597395, -1.6795760019626425], {icon: iconMarkerAlt}).bindPopup('Siège Astrolabe CAE') diff --git a/src/_includes/partials/components/member-list-simple.njk b/src/_includes/partials/components/member-list-simple.njk index 32e332f..116e562 100644 --- a/src/_includes/partials/components/member-list-simple.njk +++ b/src/_includes/partials/components/member-list-simple.njk @@ -4,7 +4,7 @@
    {% for item in teamListItems %}
  1. - + photo de {{ item.data.name }} {{ item.data.name }} diff --git a/src/_includes/partials/components/member-list.njk b/src/_includes/partials/components/member-list.njk index ccb52de..aa0ed40 100644 --- a/src/_includes/partials/components/member-list.njk +++ b/src/_includes/partials/components/member-list.njk @@ -4,7 +4,7 @@
      {% for item in teamListItems %}
    1. - + photo de {{ item.data.name }} {{ item.data.name }} @@ -16,7 +16,7 @@ {% endfor %}
    2. Vous êtes porteur d’un projet entrepreneurial en numérique et nouvelles technologies ?

      - Rejoignez-nous + Rejoignez-nous
    {% endif %} diff --git a/src/_includes/partials/components/posts-list-home.njk b/src/_includes/partials/components/posts-list-home.njk index 023f9c0..410c8e3 100644 --- a/src/_includes/partials/components/posts-list-home.njk +++ b/src/_includes/partials/components/posts-list-home.njk @@ -4,7 +4,7 @@

    {{ newsListHeading }}

    {% include "partials/components/posts-list.njk" %} - Voir tout + Voir tout
    diff --git a/src/_includes/partials/components/presentation.njk b/src/_includes/partials/components/presentation.njk index cc61b5d..5589f43 100644 --- a/src/_includes/partials/components/presentation.njk +++ b/src/_includes/partials/components/presentation.njk @@ -14,7 +14,7 @@ {#
    #} équipage astrolabe {#
    #} - Nous rejoindre + Nous rejoindre @@ -47,13 +47,13 @@
      {% for profile in profilePics %}
    • - + photo de {{ profile.data.name }}
    • {% endfor %}
    - Voir l'équipe + Voir l'équipe diff --git a/src/_includes/partials/global/site-foot.njk b/src/_includes/partials/global/site-foot.njk index 80c3582..4e9f802 100644 --- a/src/_includes/partials/global/site-foot.njk +++ b/src/_includes/partials/global/site-foot.njk @@ -10,8 +10,8 @@

    -

    Mentions légales

    -

    Protection des données

    +

    Mentions légales

    +

    Protection des données

    Contact

    diff --git a/src/team-skills.njk b/src/team-skills.njk index f707050..9b67c2c 100644 --- a/src/team-skills.njk +++ b/src/team-skills.njk @@ -25,12 +25,12 @@ permalink: /equipe/{{ tag }}/

    Profils avec le mot-clé :

    {{ tag }} - tout + tout
    {% include "partials/components/member-list-simple.njk" %} {% include "partials/components/map.njk" %} {% include "partials/components/contact-form.njk" %} -- 2.30.2 From d72316cf8605799d317231db5f57aa2f950a985e Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 18 Mar 2024 13:12:37 +0100 Subject: [PATCH 2/3] feat(seo): add sitemap --- src/robots.txt | 2 ++ src/sitemap.njk | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/sitemap.njk diff --git a/src/robots.txt b/src/robots.txt index e3858bf..2e1bc85 100644 --- a/src/robots.txt +++ b/src/robots.txt @@ -1,3 +1,5 @@ +Sitemap: https://www.astrolabe.coop/sitemap.xml + User-agent: * Disallow: /fonts/ Disallow: /form/ diff --git a/src/sitemap.njk b/src/sitemap.njk new file mode 100644 index 0000000..9390e5e --- /dev/null +++ b/src/sitemap.njk @@ -0,0 +1,13 @@ +--- +permalink: /sitemap.xml +eleventyExcludeFromCollections: true +--- + + + {% for page in collections.all %} + + {{ site.url }}{{ page.url | url }} + {{ page.date.toISOString() }} + + {% endfor %} + -- 2.30.2 From 80f8f7f5a16d3e8cc2a16ab139784e8b8368c55d Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 18 Mar 2024 13:29:44 +0100 Subject: [PATCH 3/3] fix(gautier): remove 404 --- src/members/gautier-moreau.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/members/gautier-moreau.md b/src/members/gautier-moreau.md index 872f315..0a0e2d8 100644 --- a/src/members/gautier-moreau.md +++ b/src/members/gautier-moreau.md @@ -5,7 +5,16 @@ positionInternal: 'Membre' date: '2023-07-01' profile: '/images/profiles/gm-profile.jpg' url: '/members/gautier-moreau' -tags: [Circuits courts de l'énergie, Smart grids, Organisation-légal, Technique, Economique, Système énergétique /(électricité et gaz)/, Réseau de distribution d'énergie] +tags: + [ + Circuits courts énergie, + Smart grids, + Organisation-légal, + Technique, + Economique, + Système énergétique (électricité et gaz), + Réseau de distribution énergie, + ] location: [47.6586, -2.7585] --- -- 2.30.2