feat: created drafts folder
This commit is contained in:
parent
8808045499
commit
03b22a9a36
2 changed files with 7 additions and 5 deletions
|
|
@ -1,7 +1,3 @@
|
|||
---
|
||||
released: false
|
||||
---
|
||||
|
||||
Richard David Wolff about socialists and socialism
|
||||
https://www.youtube.com/watch?v=_9lSwELJsGs&t=486
|
||||
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue