I’ve found it useful in meetings and projects to have headings with a date. For instance, in People/John Doe
:
John Doe is a good dude.
# Meetings
## 2024-11-05
Nice meeting with this guy, seems like a good dude.
Now, when going to Journal/Day/2024-11-05
, wouldn’t it be nice to see an indicator “you had a meeting with John Doe on this day”? Well this is right up SilverBullet’s alley! I have this
as Templates/OnThisDay.md
:
---
tags: template
hooks.bottom.where: 'tag = "page" and name =~ "^Journal/"'
---
```template
{{#let @date = replace(@page.name, /.*\//, '')}}
{{#let @header = {header where name = @date}}}
{{#if @header}}
# On this day
{{#each @header}}
* [[{{page}}#{{name}}]]
{{/each}}
{{/if}}
{{/let}}
{{/let}}
```
This will render, at the bottom of Journal/Day/2024-10-02
:
On this day
[[People/John Doe#2024-10-02]]