From 964149e0bbadb72f24f384ae55d488c5a86b9fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Thu, 9 Jul 2026 02:17:53 +0400 Subject: [PATCH] =?UTF-8?q?fix(footer):=20ann=C3=A9e=20du=20copyright=20dy?= =?UTF-8?q?namique=20=C3=A0=20la=20g=C3=A9n=C3=A9ration=20du=20site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remplace l'année en dur par un shortcode Eleventy {% year %} - Supprime le champ copyright obsolète des JSON i18n --- eleventy.config.js | 3 +++ src/_data/i18n/en/site.json | 1 - src/_data/i18n/fr/site.json | 1 - src/_includes/partials/footer.njk | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/eleventy.config.js b/eleventy.config.js index ed0c39e..bea0055 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -29,6 +29,9 @@ module.exports = function(eleventyConfig) { // Watch JS files for changes 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 eleventyConfig.setBrowserSyncConfig({ files: ['_site/assets/css/**/*.css', '_site/assets/js/**/*.js'] diff --git a/src/_data/i18n/en/site.json b/src/_data/i18n/en/site.json index 9969a45..9baab1e 100644 --- a/src/_data/i18n/en/site.json +++ b/src/_data/i18n/en/site.json @@ -4,7 +4,6 @@ "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", "email": "kontak@o-k-i.net", - "copyright": "© 2025 ORGANISATION KA INTERNATIONALE", "tagline": "Digital tools in service of your struggles", "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", diff --git a/src/_data/i18n/fr/site.json b/src/_data/i18n/fr/site.json index 619b1c7..9888f04 100644 --- a/src/_data/i18n/fr/site.json +++ b/src/_data/i18n/fr/site.json @@ -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.", "url": "https://o-k-i.net", "email": "kontak@o-k-i.net", - "copyright": "© 2025 ORGANISATION KA INTERNATIONALE", "tagline": "Le numérique au service de vos luttes", "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", diff --git a/src/_includes/partials/footer.njk b/src/_includes/partials/footer.njk index 7ca7c8d..e48573a 100644 --- a/src/_includes/partials/footer.njk +++ b/src/_includes/partials/footer.njk @@ -5,7 +5,7 @@ {{ t.site.name }}