Files
Marcel Arndt a2ad5f5c6d import vault
2026-07-16 14:04:45 +02:00

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)
-%>