diff --git a/eleventy.config.js b/eleventy.config.js index 76e3cdf..d13827d 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -104,7 +104,10 @@ module.exports = function(eleventyConfig) { }); eleventyConfig.addFilter("readableAuthors", (authors) => { - return authors ? "par " + (authors || []).join(" & ") : ""; + if (authors.length > 1) { + return "par " + authors.slice(0, -1).join(", ") + " et " + authors.slice(-1); + } + return "par " + (authors || []); }); eleventyConfig.addFilter("noHome", elements => {