import vault
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<%*
|
||||
// base: keeps the note system-ready. File timestamps are managed by Obsidian/plugin metadata.
|
||||
const file = tp.file.find_tfile(tp.file.path(true));
|
||||
|
||||
setTimeout(async () => {
|
||||
await tp.app.fileManager.processFrontMatter(file, (frontmatter) => {
|
||||
frontmatter["components"] = Array.isArray(frontmatter["components"]) ? frontmatter["components"] : [];
|
||||
frontmatter["base_archived"] = frontmatter["base_archived"] ?? false;
|
||||
});
|
||||
}, 300)
|
||||
-%>
|
||||
Reference in New Issue
Block a user