From 08d48f1a242464fa3ca479fb25ab9c295bf570eb Mon Sep 17 00:00:00 2001 From: Oscar Date: Fri, 15 Nov 2019 20:08:41 +0100 Subject: [PATCH] feat(11ty): definition is not spelled defintion, definition is not spelled defintion --- .eleventy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 3bb4af2c..3794fffa 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -5,10 +5,10 @@ module.exports = function (config) { config.addFilter('linkTarget', makeItemLink); config.addFilter('linkIfExistsInCollection', (word, collection) => { - const existingDefintion = collection.find(item => item.data.title === word) + const existingDefinition = collection.find(item => item.data.title === word) - if (existingDefintion) { - return `${word}` + if (existingDefinition) { + return `${word}` } return word