Refactor /now to use built in postslist include

This commit is contained in:
2024-04-13 21:49:58 -05:00
parent a6bd281946
commit 59484d8363
2 changed files with 8 additions and 34 deletions

View File

@ -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 = [