Refactor /now to use built in postslist include

This commit is contained in:
n_u committed 2024-04-13 21:49:58 -05:00
1 parent a6bd281946
commit 59484d8363
2 files changed
+8 -34

No files matched your search

+4
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 = [