From d07baf532a6936828990d174507bdbcb27ba93f7 Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Thu, 8 Dec 2022 14:09:29 +1100 Subject: [PATCH] put the condition back to only show the posts if they're published. --- .eleventy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index 04e8291..4fddaa4 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -31,7 +31,7 @@ module.exports = function(eleventyConfig) { eleventyConfig.addCollection("feed", function(collectionApi) { return collectionApi.getAllSorted().reverse().filter(item => { let showInFeed = false; - //if(!item.data.published) return false + if(!item.data.published) return false if(item.filePathStem.startsWith('/notes/')){ if(item.data['like-of']) item.data.postType = "like" else if(item.data['in-reply-to']) item.data.postType = "reply"