22 ms·
For myself, I have developed a so-called default template for notes. ``` --- aliases: - <%tp.file.title%> tags: --- %% [[<%tp.file.creation_date("YY
by user205738 7mo ago
For myself, I have developed a so-called default template for notes.
```
---
aliases:
- <%tp.file.title%>
tags:
---
%%
[[<%tp.file.creation_date("YYYY-MM-DD")%>]]
%%
```
<%tp.file.title%> for aliases, it is necessary to always refer to the alias [[note|note alias]] notes in the text (if I refer without a pseudonym, then by accidentally or intentionally changing the name of the note, I can ruin the text in all places where it occurs
- user205738 7mo agoThere is also a template for different types of notes, which is selected when creating a note in a specific folder or creating it using QuickAdd.: For example, when I add a link to the author to a book note and use keyboard shortcuts to create a note page for the author, the following template is used: ```md --- aliases: - <%tp.file.title%> tags: - t3/books - people - t3/author --- %% [[<%tp.file.creation_date("YYYY-MM-DD")%>]] %% ### Works ```base views: - type: table name: Table filters: and: - file.hasLink("<% tp.file.find_tfile(tp.file.folder(true) + "/" + tp.file.title + ".md").path %>") - file.hasTag("t3/books") sort: - property: file.name direction: ASC ``` Tags in metadata do not need the # symbol, although you can use it if you enclose the entire tag in quotation marks.