12 lines
442 B
Markdown
12 lines
442 B
Markdown
<%*
|
|
// 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)
|
|
-%>
|