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;