2023-02-08 09:29:44 +00:00
|
|
|
const dateFilters = require('./dates');
|
2023-02-10 14:38:00 +00:00
|
|
|
const arrayFilters = require('./arrays');
|
2023-12-26 14:35:09 +00:00
|
|
|
const excerptFilter = require('./excerpt');
|
2023-02-08 09:29:44 +00:00
|
|
|
|
|
|
|
module.exports = function(eleventyConfig) {
|
|
|
|
eleventyConfig.addPlugin(dateFilters);
|
2023-02-10 14:38:00 +00:00
|
|
|
eleventyConfig.addPlugin(arrayFilters);
|
2023-12-26 14:35:09 +00:00
|
|
|
eleventyConfig.addPlugin(excerptFilter);
|
2023-02-13 13:35:44 +00:00
|
|
|
|
|
|
|
eleventyConfig.addFilter('keys', obj => Object.keys(obj))
|
2023-12-26 14:35:09 +00:00
|
|
|
eleventyConfig.addFilter('json', obj => JSON.stringify(obj, null, 2));
|
2023-02-08 09:29:44 +00:00
|
|
|
}
|