From c0ce445e1027f4efb85e38a500a9259a4f6be2b4 Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 6 Feb 2020 19:41:59 +0100 Subject: [PATCH] Updated Day notes (markdown) --- Day-notes.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Day-notes.md b/Day-notes.md index 3797dec..210c14a 100644 --- a/Day-notes.md +++ b/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.