2024-10-06 11:36:54 +00:00
|
|
|
import dateFilters from './dates.js';
|
|
|
|
import arrayFilters from './arrays.js';
|
|
|
|
import excerptFilter from './excerpt.js';
|
|
|
|
import filterBy from './filterBy.js';
|
|
|
|
import getPost from './getPost.js';
|
2024-07-10 11:05:12 +00:00
|
|
|
|
2024-10-06 11:36:54 +00:00
|
|
|
export default function(eleventyConfig) {
|
2023-02-08 09:29:44 +00:00
|
|
|
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-12-30 15:38:09 +00:00
|
|
|
eleventyConfig.addPlugin(filterBy);
|
2024-07-10 11:05:12 +00:00
|
|
|
eleventyConfig.addPlugin(getPost);
|
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
|
|
|
}
|