From 700ea205266b4a82fbc8198b8a62d595572bc682 Mon Sep 17 00:00:00 2001 From: Bob Monsour Date: Fri, 28 Jun 2024 12:58:35 -0700 Subject: [PATCH] Updated filter imports --- src/posts/upgrade-and-debug.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/posts/upgrade-and-debug.md b/src/posts/upgrade-and-debug.md index 72ec2d9..55ae035 100644 --- a/src/posts/upgrade-and-debug.md +++ b/src/posts/upgrade-and-debug.md @@ -89,25 +89,25 @@ I like how the ultimate organization worked out. └── shortcodes.js ``` -And here is what filters.js looks like: +And here is what filters.js looks like. _Updated to reflect simplified filter imports as suggested by Uncenter._ ```js import { cachedSlugify } from "./filters/cachedslugify.js"; import { isCurrentPage } from "./filters/iscurrentpage.js"; -import { formatItemDate } from "./filters/formatting.js"; -import { formatPostDate } from "./filters/formatting.js"; -import { formatFirehoseDate } from "./filters/formatting.js"; -import { formatNumber } from "./filters/formatting.js"; +import { + formatItemDate, + formatPostDate, + formatFirehoseDate, + formatNumber, +} from "./filters/formatting.js"; import { getBundleItems } from "./filters/getbundleitems.js"; import { getDescription } from "./filters/getdescription.js"; import { getRSSlink } from "./filters/getrsslink.js"; import { plainDate } from "./filters/formatting.js"; -import { postCountByAuthor } from "./filters/postsbyauthor.js"; -import { postsByAuthor } from "./filters/postsbyauthor.js"; +import { postCountByAuthor, postsByAuthor } from "./filters/postsbyauthor.js"; import { postsInCategory } from "./filters/postsincategory.js"; import { readingTime } from "./filters/readingtime.js"; import { webmentionsByUrl } from "./filters/webmentionsbyurl.js"; - export default { cachedSlugify, isCurrentPage,