diff --git a/config/filters/index.js b/config/filters/index.js index 1b51d2d..1bb9ab4 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -74,6 +74,10 @@ const splitlines = (input, maxCharLength) => { return lines; }; +const shuffleArray = array => { + return array.sort(() => Math.random() - 0.5); +}; + module.exports = { toISOString, formatDate, @@ -81,5 +85,6 @@ module.exports = { stripHtml, minifyCss, minifyJs, - splitlines + splitlines, + shuffleArray }; diff --git a/eleventy.config.js b/eleventy.config.js index d915f66..342a333 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -21,7 +21,8 @@ const { stripHtml, minifyCss, minifyJs, - splitlines + splitlines, + shuffleArray } = require('./config/filters/index.js'); // module import shortcodes @@ -67,6 +68,7 @@ module.exports = eleventyConfig => { eleventyConfig.addFilter('stripHtml', stripHtml); eleventyConfig.addFilter('slugify', slugifyString); eleventyConfig.addFilter('splitlines', splitlines); + eleventyConfig.addFilter('shuffle', shuffleArray); eleventyConfig.addFilter('cssmin', minifyCss); eleventyConfig.addNunjucksAsyncFilter('jsmin', minifyJs); diff --git a/src/_data/builtwith.json b/src/_data/builtwith.json index 8ca6944..848e65b 100644 --- a/src/_data/builtwith.json +++ b/src/_data/builtwith.json @@ -11,12 +11,6 @@ "filename": "refugiolibertad", "link": "https://refugio.libre.org.ar" }, - { - "name": "Lene Saile", - "description": "My personal site! Really, this website came before the starter, and I built the starter based on it.", - "filename": "lenesaile", - "link": "https://www.lenesaile.com" - }, { "name": "Old man yelling at tech", "description": "Former software engineer turned manager rediscovers his love for coding and infrastructure.", @@ -89,12 +83,6 @@ "filename": "elan", "link": "https://elan.maltebaer.vercel.app" }, - { - "name": "Manu Clavijo", - "description": "Manu Clavijo is an experienced violinist who also performs his own repertoire of songs as a singer-songwriter", - "filename": "manuclavijo", - "link": "https://www.manuclavijo.com/" - }, { "name": "Colegio Marpe Ciudad Jardín", "description": "Website for a primary school in Las Palmas.", diff --git a/src/pages/built-with.njk b/src/pages/built-with.njk index 843b963..edaeabb 100644 --- a/src/pages/built-with.njk +++ b/src/pages/built-with.njk @@ -32,7 +32,7 @@ widths: [400, 520]

Based on, or built with Eleventy Excellent: