From 03b22a9a36fa5c930a2ede3632f162c1d7275d53 Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Wed, 11 Feb 2026 20:49:24 -0600 Subject: [PATCH] feat: created drafts folder --- posts/{ => drafts}/content-recommendations.md | 4 ---- posts/posts.11tydata.js | 8 +++++++- 2 files changed, 7 insertions(+), 5 deletions(-) rename posts/{ => drafts}/content-recommendations.md (98%) diff --git a/posts/content-recommendations.md b/posts/drafts/content-recommendations.md similarity index 98% rename from posts/content-recommendations.md rename to posts/drafts/content-recommendations.md index 6f83421..fd66c61 100644 --- a/posts/content-recommendations.md +++ b/posts/drafts/content-recommendations.md @@ -1,7 +1,3 @@ ---- -released: false ---- - Richard David Wolff about socialists and socialism https://www.youtube.com/watch?v=_9lSwELJsGs&t=486 diff --git a/posts/posts.11tydata.js b/posts/posts.11tydata.js index 62d1f82..fcec690 100644 --- a/posts/posts.11tydata.js +++ b/posts/posts.11tydata.js @@ -88,8 +88,14 @@ const getPostCreatedAt = (data) => { module.exports = { layout: "post.njk", tags: ["posts"], - released: true, eleventyComputed: { + released: (data) => { + if(data.page.inputPath.startsWith('./posts/drafts/')) { + return false + } + + return true + }, title: (data) => { if (data.title && data.title !== data.page.fileSlug) { return data.title;