Obsidian-git/010-Templates/templater-AnyNote.md
2025-12-02 13:18:05 +08:00

20 lines
373 B
Markdown

<%*
let title = tp.file.title
if (title.startsWith("Untitled")) {
title = await tp.system.prompt("Title");
await tp.file.rename(title);
}
tR += "---"
%>
title: <%* tR += title %>
created: <% tp.date.now("dddd Do MMMM YYYY HH:mm") %>
Last modified: <% tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm") %>
Aliases:
Tags:
---
# <%* tR += title %>