From 5f26a503afdeb5047560a8fe435f4870e425e4d0 Mon Sep 17 00:00:00 2001
From: Joel Shprentz
Date: Thu, 20 Mar 2025 22:59:20 +0000
Subject: [PATCH] In month note title patterns, replace {isoMonth} with e.g.
"2025-03" for March 2025.
---
.../User Guide/Advanced Usage/Advanced Showcases/Day Notes.md | 3 ++-
.../Advanced Usage/Advanced Showcases/Day Notes.html | 4 +++-
src/services/date_notes.ts | 1 +
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.md b/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.md
index 87b9bad27..d117ee8a9 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.md
@@ -43,6 +43,7 @@ It's possible to customize the title of generated date notes by defining a `#dat
It is also possible to customize the title of generated month notes through the `#monthPattern` attribute, much like `#datePattern`. The options are:
+* `{isoDate}` results in an ISO 8061 formatted month (e.g. "2025-03" for March 2025)
* `{monthNumberPadded}` results in a number like `09` for September, and `11` for November
* `{month}` results in the full month name (e.g. `September` or `October`)
* `{shortMonth3}` is replaced with the first 3 letters of the month, e.g. Jan, Feb, etc.
@@ -56,4 +57,4 @@ Trilium has some special support for day notes in the form of [backend Script AP
Day (and year, month) notes are created with a label - e.g. `#dateNote="2018-08-16"` this can then be used by other scripts to add new notes to day note etc.
-Journal also has relation `child:child:child:template=Day template` (see \[\[attribute inheritance\]\]) which effectively adds \[\[template\]\] to day notes (grand-grand-grand children of Journal).
\ No newline at end of file
+Journal also has relation `child:child:child:template=Day template` (see \[\[attribute inheritance\]\]) which effectively adds \[\[template\]\] to day notes (grand-grand-grand children of Journal).
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.html b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.html
index 266223fd5..75ee23976 100644
--- a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.html
+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Advanced Showcases/Day Notes.html
@@ -76,6 +76,8 @@
the #monthPattern
attribute, much like #datePattern
.
The options are:
+ {isoMonth}
results in an ISO 8061 formatted month (e.g.
+ "2025-03" for March 2025)
{monthNumberPadded}
results in a number like 09
for
September, and 11
for November
{month}
results in the full month name (e.g. September
or October
)
@@ -98,4 +100,4 @@