Obsidian-git/010-Templates/templater-daily.md
2025-12-02 13:18:05 +08:00

93 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
created: <% tp.date.now("YYYY-MM-DD HH:mm") %>
aliases: [<% tp.file.title %>]
weather: "<% tp.user.天氣_高雄市() %>"
tags: [ daily ]
---
# <% tp.file.title %>
Modified:: <%+ tp.file.last_modified_date() %>
← [[<% tp.date.yesterday("YYYY-MM-DD_ddd") %>]] | [[<% tp.date.tomorrow("YYYY-MM-DD_ddd")%>]] →
## 本日完成任務
```tasks
done today
```
## 未完成任務
```tasks
not done
due before today
```
## 未完成之無期限任務
```tasks
path does not include 000-Index
path does not include 010-Templates
path does not include todo
path does not include <% tp.file.title %>
not done
no due date
```
## 明天到期任務
```tasks
due on tomorrow
```
## 昨天完成任務
```tasks
done on yesterday
```
----
<%*
function getWeek() {
var d = new Date();
var n = d.getDay();
return n;
}
let titleDate = tp.file.title; // 可能在今天建立明天的日記,因此日期不能取系統日期
let index = titleDate.indexOf("_");
if (index > 0) {
titleDate = titleDate.substring(0, index);
}
let week = getWeek();
if (week == 1 || week == 4) {
%>
## 會議
<%* } %>
## 任務
## 靈光一閃
## 每日檢核清單
### 一日之計在於晨
- [ ] 🔵檢查Email
- [ ] 🔵檢查即時通訊 (LINE)
<%-*
if (week == 1) {
-%>
- [ ] 🔵周一閱讀Obsidian Roundup
<%* } %>
- [ ] 🔵檢查公告
- [ ] 🔵檢查待辦事項
### 今日事今日畢
- [ ] 🔵返家前檢查Email (@<% tp.date.now() %> 18:05)
- [ ] 🔵返家前更新待辦事項狀態 (@<% tp.date.now() %> 18:07)
- [ ] 🔵檢查明天待辦事項 (@<% tp.date.now("YYYY-MM-DD_ddd",+1) %> 18:10)
### 明天到期任務
```tasks
due on tomorrow
```
## 其他事項