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