Refactor /now to use built in postslist include
This commit is contained in:
@ -54,6 +54,10 @@ module.exports = eleventyConfig => {
|
||||
return DateTime.fromJSDate(dateObj, { zone: 'utc' }).toFormat('yyyy-LL-dd');
|
||||
});
|
||||
|
||||
eleventyConfig.addFilter("removeMostRecent", arr => {
|
||||
return arr.slice(0, arr.length-1);
|
||||
});
|
||||
|
||||
// Shortcodes
|
||||
eleventyConfig.addNunjucksFilter("cowsay", cowText => {
|
||||
const cowCaptionReplacementTable = [
|
||||
|
Reference in New Issue
Block a user