Files
obsidian/Templater/Daily_Note 템플릿-1.md

127 lines
2.9 KiB
Markdown
Raw Permalink 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.
---
date_daily: <% tp.file.title.slice(0,10) %>
achievement:
reading_book:
emotion:
important_date: false
tags:
- daily
daily_review:
reading_page:
exercise: false
---
**올해 남은 일: <%*
let edate = moment("12-31", "MM-DD");
let from = moment().startOf('day');
edate.diff(from, "days") >= 0 ? edate.diff(from, "days") == 0 ? tR += "오늘입니다!" : tR += edate.diff(from, "days") : tR += edate.add(1, "year").diff(from, "days") %>
*achievement:업적,성취(목표를 이루다), emotion:감정, exetcise:운동, review:(변화를 주기위해)검토, 비평, 논평, 평가, *
<%*
const currentMoment = moment(tp.file.title, "YYYY-MM-DD");
tR += ' ';
tR += '[[' + currentMoment.format('YYYY|YYYY년') + ']]' + ' / ';
tR += '[[' + currentMoment.format('YYYY-MM|MM월') + ']]' + ' / ';
tR += '[[' + currentMoment.format('gggg-[W]ww') + '|' + currentMoment.format('ww[주]') + ']]';
tR += ' ';
tR += '\n';
tR += ' ';
currentMoment.add(-1,'days');
tR += '[[' + currentMoment.format('YYYY-MM-DD(ddd)') + ']]' + ' | ';
currentMoment.add(1,'days');
tR += currentMoment.format('YYYY-MM-DD(ddd)') + ' | ';
currentMoment.add(1,'days');
tR += '[[' + currentMoment.format('YYYY-MM-DD(ddd)') + ']]';
currentMoment.add(-1,'days');
tR += ' ';
%>
<% tp.web.daily_quote() %>
### 일일업무
![[인수인계서(군수지원부사관)]]
![[2025년 월력형 메모형 일정.canvas|2025년 월력형 메모형 일정]]
### 내일 기억할 일
### 오늘 기억할 일
<%*
let yesterday = "10. Planner/11. Daily/" + tp.date.now("YYYY-MM-DD(ddd)", -1, tp.file.title, "YYYY-MM-DD(ddd)");
let section = "### 내일 기억할 일";
let should_include = false;
let sectionContent = "";
let yfile = tp.file.find_tfile(yesterday);
if(yfile) {
const content = await app.vault.read(yfile);
if(content.includes(section)) {
let startIndex = content.indexOf(section) + section.length;
let endIndex = content.indexOf('\n###', startIndex);
endIndex = endIndex === -1 ? content.length : endIndex;
sectionContent = content.substring(startIndex, endIndex).trim();
should_include = sectionContent.length > 0;
}
}
tR += should_include ? sectionContent : "없습니다😀";
%>
### 아침
#### 오늘의 확언 ^[확실히 말하다.]
-
#### 오늘의 목표
-
-
- [ ]
- [ ]
#### 할 일 추가하기
- [ ]
#### 오늘 완료한 일
```tasks
done <% tp.file.title.slice(0,10) %>
```
### 독서
- 읽은 책
- 읽은 페이지
### 운동
-
### 하루 마무리
#### 오늘 배운 것들
-
-
#### 오늘 감사한 일
>[!note]
>
#### 일기
>[!note]
>
#### 오늘요약
>[!note]
>
>^summary
### 오늘 작성한 노트
```dataview
List FROM "" WHERE file.cday = date("<% tp.date.now('YYYY-MM-DD') %>") SORT file.ctime desc
```
### 오늘 수정한 노트
```dataview
List FROM "" WHERE file.mday = date("<% tp.date.now('YYYY-MM-DD') %>") SORT file.mtime desc
```