From fd03c701f25e048704c5b2e7dfe45d3b8e7dafed Mon Sep 17 00:00:00 2001 From: linyibing Date: Tue, 6 Feb 2024 23:19:54 +0800 Subject: [PATCH] fix: monthly template --- 0. PeriodicNotes/Templates/Monthly.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/0. PeriodicNotes/Templates/Monthly.md b/0. PeriodicNotes/Templates/Monthly.md index c6a71dd..75a156f 100644 --- a/0. PeriodicNotes/Templates/Monthly.md +++ b/0. PeriodicNotes/Templates/Monthly.md @@ -12,9 +12,9 @@ ProjectListByTime ## Role Dimension ### Employee -<%* let monthNum = Number(tp.file.title.match(/-(\d\d)/)[1]); if (monthNum%2 === 0) { -%> +<%* let current = PeriodicPARA.Date.parse(app.workspace.getActiveFile().path); if (current.month%2 === 0) { -%> - #work/one-one - - [ ] Fill in bimonthly #work/trivia 📅 <% PeriodicPARA.Date.lastDay(PeriodicPARA.Date.parse()).month %> + - [ ] Fill in bimonthly #work/trivia 📅 <% PeriodicPARA.Date.lastDay(current).month %> <%* } -%> - OKR ### Husband