vault backup: 2026-05-04 17:15:02
This commit is contained in:
+2
-1
@@ -9,6 +9,7 @@ previous: "[[<% moment(tp.file.title, 'YYYY-MM-DD').subtract(1,'days').format('Y
|
||||
---
|
||||
# <% tp.file.title %>
|
||||
<%*
|
||||
// ensure monthly note
|
||||
// ensure parents
|
||||
await tp.user.ensure_exists(tp, "monthly", tp.file.title.slice(0, 7), false, "periodic/monthly")
|
||||
await tp.user.ensure_exists(tp, "weekly", moment(tp.file.title, 'YYYY-MM-DD').format('gggg[w]ww'), false, "periodic/weekly")
|
||||
%>
|
||||
@@ -33,4 +33,7 @@ else if (/^20\d\d$/.test(title)) {
|
||||
await tp.app.vault.delete(file);
|
||||
await tp.file.create_new(tp.file.find_tfile("yearly"), title, true, "periodic/yearly");
|
||||
}
|
||||
else {
|
||||
// await tp.file.create_new(tp.file.find_tfile("untitled"), title, true, "");
|
||||
}
|
||||
%>
|
||||
Reference in New Issue
Block a user