Clean up the JSON code a bit (don’t need that extra filter)

This commit is contained in:
Zach Leatherman
2020-07-27 15:02:58 -05:00
parent 2934dae820
commit d3ced37f50
4 changed files with 7 additions and 14 deletions

View File

@@ -24,14 +24,6 @@ module.exports = function(eleventyConfig) {
return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat('yyyy-LL-dd');
});
// Content for jsonfeed
eleventyConfig.addFilter('jsonStringify', content => {
if (!content) {
content = "";
}
return JSON.stringify(content);
});
// Get the first `n` elements of a collection.
eleventyConfig.addFilter("head", (array, n) => {
if( n < 0 ) {