feat: created drafts folder

This commit is contained in:
Leyla Becker 2026-02-11 20:49:24 -06:00
parent 8808045499
commit 03b22a9a36
2 changed files with 7 additions and 5 deletions

View file

@ -1,7 +1,3 @@
---
released: false
---
Richard David Wolff about socialists and socialism Richard David Wolff about socialists and socialism
https://www.youtube.com/watch?v=_9lSwELJsGs&t=486 https://www.youtube.com/watch?v=_9lSwELJsGs&t=486

View file

@ -88,8 +88,14 @@ const getPostCreatedAt = (data) => {
module.exports = { module.exports = {
layout: "post.njk", layout: "post.njk",
tags: ["posts"], tags: ["posts"],
released: true,
eleventyComputed: { eleventyComputed: {
released: (data) => {
if(data.page.inputPath.startsWith('./posts/drafts/')) {
return false
}
return true
},
title: (data) => { title: (data) => {
if (data.title && data.title !== data.page.fileSlug) { if (data.title && data.title !== data.page.fileSlug) {
return data.title; return data.title;