First of all, I'm no longer relying on the build in template system of Obsidian.md. Templater comes with date support, but also allow to run arbitrary javascript code within the templates. In fact, this note is created using Templater.
Secondly, Dataview is a plugin which allow to query for related notes based on a bunch of parameters related to each note. In our particular case, the [[
]] section in this note is created using Dataview.listfrom "Zettle"where file.ctime >= date(2021-07-09) and file.ctime <= date(2021-07-15)
Zettles are queried that are created in a timespan of 3 days before the creation of the daily note and 3 days afterwards.
The following list contains an overview of all zettels that have been created within a timespan of 3 days before and after the creation of this daily note.
listfrom "Zettle"where file.ctime >= date(2021-07-09) and file.ctime <= date(2021-07-15)