diff --git a/.eleventy.js b/.eleventy.js index 0609214..82e34c1 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -40,21 +40,22 @@ module.exports = function (eleventyConfig) { }; var slug = title - .toLowerCase() - .trim() - // remove accents - .normalize('NFD') - .replace(/[\u0300-\u036f]/g, '') - // replace invalid characters with spaces - .replace(/[^a-z0-9\s-]/g, ' ') - .trim() - // replace multiple spaces or hyphens with a hyphen - .replace(/[\s-]+/g, '-'); + .toLowerCase() + .trim() + // remove accents + .normalize('NFD') + .replace(/[\u0300-\u036f]/g, '') + // replace invalid characters with spaces + .replace(/[^a-z0-9\s-]/g, ' ') + .trim() + // replace multiple spaces or hyphens with a hyphen + .replace(/[\s-]+/g, '-'); return `
${title}
- ${// evil nested tertiary this is the worlds least oneline oneliner
+ ${
+ // evil nested tertiary this is the worlds least oneline oneliner
!link || link == "" ?
"" :
Array.isArray(link) ?
@@ -65,8 +66,9 @@ module.exports = function (eleventyConfig) {
}${!image || image == "" ?
"" :
Array.isArray(image) ?
- image.map((i) => `
`).join(" ") :
- `
+ image.map((i, index) => `
+ `).join(" ") :
+ `
`
}${!video || video == "" ?
"" :