mirror of
https://github.com/zadam/trilium.git
synced 2025-01-30 19:08:55 +08:00
Updated Day notes (markdown)
parent
3f4b64f482
commit
c0ce445e10
1 changed files with 11 additions and 0 deletions
11
Day-notes.md
11
Day-notes.md
|
@ -11,6 +11,17 @@ You can see structure of day notes appearing under "Journal" note - there's a no
|
|||
|
||||
You can also notice how this day note has [[promoted attribute|Promoted attributes]] "weight" where you can track your daily weight. This data is then used in [[Weight tracker]].
|
||||
|
||||
## Templates
|
||||
Trilium provides [[template]] functionality and it could be used together with day notes.
|
||||
|
||||
You can define one of the following relations on the root of the journal (identified by `@calendarRoot` label):
|
||||
|
||||
* yearTemplate
|
||||
* monthTemplate
|
||||
* dateTemplate
|
||||
|
||||
All of these are relations. When Trilium creates a new note for year or month or date it will take a look to the root and attach a corresponding `@template` relation to the newly created role. Using this you can e.g. create your daily template with e.g. checkboxes for daily routine etc.
|
||||
|
||||
## Implementation
|
||||
|
||||
Trilium has some special support for day notes in the form of [backend Script API](https://zadam.github.io/trilium/backend_api/BackendScriptApi.html) - see e.g. getDateNote() function.
|
||||
|
|
Loading…
Reference in a new issue