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
|
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
|
||||||
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue