Obsidian/1000s Templates/Daily Note Template.md

36 lines
1.2 KiB
Markdown
Executable File

---
date: <% tp.file.title %>
tags:
---
# Yesterday | Tomorrow
<< [[<%*if (tp.date.weekday("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") == tp.file.title) { tR += tp.date.now("YYYY-MM-DD", -3, tp.file.title, "YYYY-MM-DD"); } else { tR += tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD");} %>]] | [[<%*if (tp.date.weekday("YYYY-MM-DD", 5, tp.file.title, "YYYY-MM-DD") == tp.file.title) { tR += tp.date.now("YYYY-MM-DD", +3, tp.file.title, "YYYY-MM-DD"); } else { tR += tp.date.now("YYYY-MM-DD", +1, tp.file.title, "YYYY-MM-DD");} %> ]] >>
# This Week's Weekly Note
[[ Weekly Note <%*if (tp.date.weekday("YYYY-MM-DD", 3, tp.file.title, "YYYY-MM-DD") >= tp.file.title) {tR += tp.date.weekday("YYYY-MM-DD", -4, tp.file.title, "YYYY-MM-DD"); } else {tR += tp.date.weekday("YYYY-MM-DD", 3, tp.file.title, "YYYY-MM-DD"); } %>]]
# Tasks for today
## Due
```dataview
task
where
due <= date(this.date)
and due
and !completed
and status != "-"
and status != " "
sort due asc
group by file.folder
```
## Scheduled
```dataview
task
where
scheduled
and scheduled <= date(this.date)
and !completed
and status != "-"
and status != " "
sort due asc
group by file.folder
```
# Calendar Tasks