<% tp.file.title %>
<%* // Get the current note's content const currentContent = await tp.file.content; // Clear the current content await tp.file.content(""); // Write the YAML front matter followed by the original content await tp.file.write(`--- title: ${tp.file.title} parent: ${tp.file.folder(true).split("/").pop()}
${currentContent}`); %>