feature: update boilerplate with key plugins and streamlined templates
This commit is contained in:
17
templates/Base Note (Template).md
Normal file
17
templates/Base Note (Template).md
Normal file
@@ -0,0 +1,17 @@
|
||||
<%*
|
||||
const title = tp.file.title
|
||||
|
||||
// "Book" Notes
|
||||
if (title.includes('(Book)')) {
|
||||
return tp.file.include('[[Book (Template)]]')
|
||||
}
|
||||
// "People" Notes
|
||||
else if (title.startsWith("@")) {
|
||||
await tp.file.move("/people/" + title)
|
||||
return tp.file.include('[[People (Template)]]')
|
||||
}
|
||||
// "Starter" Note
|
||||
else {
|
||||
return tp.file.include('[[Starter Note (Template)]]')
|
||||
}
|
||||
%>
|
||||
Reference in New Issue
Block a user