<%*
const date = await tp.system.prompt("Date")
tp.hooks.on_all_templates_executed(async () => {
const file = tp.file.find_tfile(tp.file.path(true));
await app.fileManager.processFrontMatter(file, (frontmatter) => {
frontmatter["date"] = date
});
});
const title = tp.user.zettelize(undefined, date)
${tp.user.variables("travelsPath")}/${title})