fix(footer): année du copyright dynamique à la génération du site

- Remplace l'année en dur par un shortcode Eleventy {% year %}
- Supprime le champ copyright obsolète des JSON i18n
This commit is contained in:
2026-07-09 02:17:53 +04:00
parent 46a039d2d2
commit 964149e0bb
4 changed files with 4 additions and 3 deletions
+3
View File
@@ -29,6 +29,9 @@ module.exports = function(eleventyConfig) {
// Watch JS files for changes // Watch JS files for changes
eleventyConfig.addWatchTarget("src/assets/js/"); eleventyConfig.addWatchTarget("src/assets/js/");
// Dynamic current-year shortcode for the footer
eleventyConfig.addShortcode("year", () => new Date().getFullYear().toString());
// Configure browser sync to reload on CSS changes // Configure browser sync to reload on CSS changes
eleventyConfig.setBrowserSyncConfig({ eleventyConfig.setBrowserSyncConfig({
files: ['_site/assets/css/**/*.css', '_site/assets/js/**/*.js'] files: ['_site/assets/css/**/*.css', '_site/assets/js/**/*.js']
-1
View File
@@ -4,7 +4,6 @@
"description": "We build custom web applications for grassroots associations, collectives and activist organisations, with rates that match your means.", "description": "We build custom web applications for grassroots associations, collectives and activist organisations, with rates that match your means.",
"url": "https://o-k-i.net", "url": "https://o-k-i.net",
"email": "kontak@o-k-i.net", "email": "kontak@o-k-i.net",
"copyright": "© 2025 ORGANISATION KA INTERNATIONALE",
"tagline": "Digital tools in service of your struggles", "tagline": "Digital tools in service of your struggles",
"og_tagline": "Taking back control of our internet", "og_tagline": "Taking back control of our internet",
"keywords": "OKI, ORGANISATION KA INTERNATIONALE, custom web application, activist associations, web development, digital sovereignty, solidarity pricing, free software, Guadeloupe, Martinique, Caribbean, ethical digital, Castopod, KUTE, ethical hosting, GAFAM alternative", "keywords": "OKI, ORGANISATION KA INTERNATIONALE, custom web application, activist associations, web development, digital sovereignty, solidarity pricing, free software, Guadeloupe, Martinique, Caribbean, ethical digital, Castopod, KUTE, ethical hosting, GAFAM alternative",
-1
View File
@@ -4,7 +4,6 @@
"description": "Nous développons des applications web sur mesure pour les associations, collectifs et organisations militantes, avec des tarifs adaptés à vos moyens.", "description": "Nous développons des applications web sur mesure pour les associations, collectifs et organisations militantes, avec des tarifs adaptés à vos moyens.",
"url": "https://o-k-i.net", "url": "https://o-k-i.net",
"email": "kontak@o-k-i.net", "email": "kontak@o-k-i.net",
"copyright": "© 2025 ORGANISATION KA INTERNATIONALE",
"tagline": "Le numérique au service de vos luttes", "tagline": "Le numérique au service de vos luttes",
"og_tagline": "Prenons le contrôle de notre internet", "og_tagline": "Prenons le contrôle de notre internet",
"keywords": "OKI, ORGANISATION KA INTERNATIONALE, application web sur mesure, associations militantes, développement web, souveraineté numérique, tarifs solidaires, logiciel libre, Guadeloupe, Martinique, Caraïbes, numérique éthique, Castopod, KUTE, hébergement libre, alternative GAFAM", "keywords": "OKI, ORGANISATION KA INTERNATIONALE, application web sur mesure, associations militantes, développement web, souveraineté numérique, tarifs solidaires, logiciel libre, Guadeloupe, Martinique, Caraïbes, numérique éthique, Castopod, KUTE, hébergement libre, alternative GAFAM",
+1 -1
View File
@@ -5,7 +5,7 @@
{{ t.site.name }} {{ t.site.name }}
</p> </p>
<p class="footer-meta"> <p class="footer-meta">
{{ t.site.copyright }} | {{ t.site.tagline }} © {% year %} {{ t.site.name }} | {{ t.site.tagline }}
</p> </p>
<p class="footer-legal"> <p class="footer-legal">
<a href="{% if locale == 'en' %}/en/legal-notice/{% else %}/mentions-legales/{% endif %}"> <a href="{% if locale == 'en' %}/en/legal-notice/{% else %}/mentions-legales/{% endif %}">