Initial commit
This commit is contained in:
42
Templates/People, Staff Template.md
Normal file
42
Templates/People, Staff Template.md
Normal file
@@ -0,0 +1,42 @@
|
||||
<%*
|
||||
const fm = tp.frontmatter;
|
||||
const created = fm.created || tp.file.creation_date("YYYY-MM-DD[T]HH:mm:ss");
|
||||
|
||||
let title = fm.title
|
||||
if (!title){
|
||||
title = await tp.system.prompt("Enter name");
|
||||
}
|
||||
|
||||
let first = fm.first
|
||||
if (!first){
|
||||
first = await tp.system.prompt("Enter fist date", String(created).substring(0,10));
|
||||
}
|
||||
|
||||
datePart = String(first).substring(0,10);
|
||||
await tp.file.rename(`${title} ${datePart}`);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const fm = tp.frontmatter;
|
||||
const created = fm.created || tp.file.creation_date("YYYY-MM-DD[T]HH:mm:ss");
|
||||
const date = fm.date || tp.file.title;
|
||||
-%>
|
||||
---
|
||||
category:
|
||||
- "[[People]]"
|
||||
type:
|
||||
- "[[Staff]]"
|
||||
created: <% created %>
|
||||
first: <% first %>
|
||||
title:
|
||||
org:
|
||||
location:
|
||||
memory-trigger:
|
||||
---
|
||||
|
||||
|
||||
## Meetings
|
||||
![[Meetings.base#Person]]
|
||||
|
||||
Reference in New Issue
Block a user