<%*
const title = await tp.system.prompt("Post title");
if (!title) { return; }
const slug = title.toLowerCase().replace(/[^a-z0-9\s-]/g, '').trim().replace(/\s+/g, '-');
const publishDate = tp.date.now("YYYY-MM-DDTHH:mm:ss+01:00");
await tp.file.move(`content/blog/posts/${tp.date.now("YYYY/MM/DD")}/${slug}`);
tR += `---
title: "${title}"
description: ""
publishDate: ${publishDate}
tags: []
category: general
draft: true
syndication:
---
`;
%>
