From 6e087a9abe97eb7716aacc4ce9bcd44b9fce2c52 Mon Sep 17 00:00:00 2001 From: Oscar Date: Sun, 17 Nov 2019 19:47:06 +0100 Subject: [PATCH] feat(11ty): rename definitions collection to tableOfContent --- .eleventy.js | 2 +- 11ty/_includes/components/table-of-content.njk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 8e69fdcf..6f42d0a5 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -51,7 +51,7 @@ module.exports = function (config) { // NOTE (ovlb): this will not be remembered as the best code i’ve written. if anyone seeing this has a better solution then the following to achieve sub groups of the definitions: i am happy to get rid of it - config.addCollection('definitions', collection => { + config.addCollection('tableOfContent', collection => { const allItems = collection .getFilteredByGlob('./11ty/definitions/*.md') .sort((a, b) => { diff --git a/11ty/_includes/components/table-of-content.njk b/11ty/_includes/components/table-of-content.njk index 44c0beb8..6b4a5012 100644 --- a/11ty/_includes/components/table-of-content.njk +++ b/11ty/_includes/components/table-of-content.njk @@ -1,7 +1,7 @@