Only show note content if system date = file name

Hi all

My daily notes template contains two things, among others:

  • A list of open customer requests, using dataview
  • Lists of tasks that are overdue, due today, due tomorrow using tasks

I would like to hide these two sections on daily notes that are NOT today’s notes.

Today’s date: 2022-02-25
Currently open note’s filename(1): 2022-02-25
==> show the two sections

In all other cases
==> hide the sections

I had the idea that Templater could solve this (first world) problem, but it seems that parsing only happens when the template gets inserted. Dynamic <%+ stuff could help, but I haven’t seen any control structure elements.

Any hint welcome. It could well be that this approach is an overkill, but if there’s an easy solution to it, I’d be glad to give it a try.



(1) I’d rather go for the filename, because I tend to create notes in the future

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.