This guide will show you how to create a layered hierarchy of Daily, Monthly, and Yearly Notes. The end result will allow you to quickly move through your Daily Notes, and see them in the context of the month and year they belong to.
There are various ways this structure can be achieved. The method in this guide will use the Templater plugin to add templates with Typed Links in them to point up to the Monthly and Yearly Notes. Then, using Breadcrumbs’ Date Notes feature (different from the core Daily Notes plugin), we’ll point each Daily Note to the note following it (yesterday/tomorrow).
[!NOTE]
The yesterday/tomorrow edges aren’t shown in the Mermaid graph, as it complicates the layout. But the idea is to use the up/down directions to go from day to month to year, and the previous/next directions to move between Daily Notes in chronological order.
We’ll use some more specific fields than the default up, down, same… For Daily Notes, add the following fields. This can be done in your Edge Fields settings, under Settings > Edge Fields.
month: Points up from day to month
days: Points down from month to day
tomorrow: Point “right” from current day to next day
yesterday: Points “left” from current day to previous day
And for Monthly Notes, add these fields:
year: Points up from month to year
months: Points down from year to month
next-month: Points “right” from current month to next month
prev-month: Points “left” from current month to previous month
Next, we’ll create a new daily note template (or add to your existing one). Each daily note will point up to the month it’s in - adjusting the date format to your preference.
Templates/Daily Note.md:
---
month: "[[<% tp.date.now("YYYY-MM") %>]]"
---
## Tasks
- [ ]
graph BT
2(2024-04-27) -->|month| 1(2024-04)
[!NOTE]
Don’t worry about the tomorrow field just yet, we’ll use that later.
Now each Monthly Note will point up to the corresponding Yearly Note, and next to the month after it. A codeblock tree lists all daily notes from the current month.
In the previous steps, we used the month field in the Daily Note template, but not the months field, which should point back down from month to day. Similarly, we only added the next-month field to the Monthly Note template, but not the prev-month field. And lastly, we used the tomorrow field for Date Notes, but didn’t specify the yesterday field anywhere. This is because Breadcrumbs can infer these relationships - they’re “opposites”, in a sense.
To set this up, open Settings > Implied Relations > Transitive, and add the following Transitive Implied Relations:
Now, when you rebuild the graph, Breadcrumbs will apply these rules to your explicit edges, by adding the implied edges above. It “fills in the opposite direction”.
Add some additional fields “below” the Daily Note fields, to capture events that happened on a particular day:
day: Point up to the day something happened
events: Point down from a particular day to an event that happened
For example, in a university lecture note, you can point up to the day it happened:
---
day: [[2024-04-13]]
---
## Calculus
...
Then when viewing the Daily Note [[2024-04-13]], you’ll see all the events that happened on that day in the Matrix View or Tree View pointing down with the events field.
Moving around between Daily Notes and other Layers