put the condition back to only show the posts if they're published.

This commit is contained in:
Gordon Pedersen 2022-12-08 14:09:29 +11:00
parent 2e46a7f9c4
commit d07baf532a

View file

@ -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"