@@ -24,6 +24,14 @@ 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 ) {
|
||||
|
||||
Reference in New Issue
Block a user