mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 05:31:41 +00:00
chore: move findExistingDefinition into own file
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
const makeItemLink = (slug) => `#${slug}`;
|
||||
const findExistingDefinition = (word, collection) =>
|
||||
collection.find((item) => item.data.title === word);
|
||||
const findExistingDefinition = require('./11ty/filters/helpers/findExistingDefinition');
|
||||
|
||||
module.exports = function(config) {
|
||||
// Add a filter using the Config API
|
||||
|
Reference in New Issue
Block a user