~timharek/timharek.no

9937f624625b35db26920878c1c79f58c37792fb — Tim Hårek Andreassen 3 months ago 0302509
feat: Make new posts default to draft

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
1 files changed, 1 insertions(+), 0 deletions(-)

M src/blog.ts
M src/blog.ts => src/blog.ts +1 -0
@@ 34,6 34,7 @@ const { title, description, slug, date, tags } = await prompt([
const file = `+++
title = "${title}"
description = "${description}"
draft = true
[taxonomies]
tags = [${tags && tags.map((tag) => `"${tag}"`).join(", ")}]
+++