Initial commit
This commit is contained in:
19
Templates/04 Library Template.md
Normal file
19
Templates/04 Library Template.md
Normal file
@@ -0,0 +1,19 @@
|
||||
<%*
|
||||
const fm = tp.frontmatter;
|
||||
const created = fm.created || tp.file.creation_date("YYYY-MM-DD[T]HH:mm:ss");
|
||||
const title = fm.title || await tp.system.prompt("Enter title");
|
||||
const datePart = String(created).substring(0,10);
|
||||
|
||||
// Rename the file using the extracted date + current title
|
||||
await tp.file.rename(`${datePart} ${title}`);
|
||||
-%>
|
||||
---
|
||||
created: <% created %>
|
||||
up:
|
||||
- "[[Library]]"
|
||||
title: <% title %>
|
||||
source:
|
||||
author:
|
||||
published:
|
||||
topics:
|
||||
---
|
||||
Reference in New Issue
Block a user