diff --git a/eleventy.config.js b/eleventy.config.js index 4eaaa0e..f73c405 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -80,6 +80,10 @@ module.exports = function(eleventyConfig) { return (tags || []).filter(tag => ["all", "nav", "post", "posts"].indexOf(tag) === -1); }); + eleventyConfig.addFilter("readableAuthors", (authors) => { + return authors ? "par " + (authors || []).join(" & ") : ""; + }); + // Customize Markdown library and settings: eleventyConfig.amendLibrary("md", mdLib => { mdLib.use(markdownItAnchor, { diff --git a/src/_components/postslist.njk b/src/_components/postslist.njk index f3c064a..c74fb1a 100644 --- a/src/_components/postslist.njk +++ b/src/_components/postslist.njk @@ -5,7 +5,7 @@ {% if post.data.title %}{{ post.data.title }}{% else %}{{ post.url }}{% endif %}