Replies: 3 comments 4 replies
-
Try this:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @kenanmike 😊 As an alternative to the previous suggestion (😇) ... <%*
let start_of_month = moment(tp.file.title,'YYYY-MM').startOf('month').startOf('IsoWeek');
let end_of_month = moment(tp.file.title,'YYYY-MM').endOf('month').startOf('IsoWeek');
let weeks_in_month = end_of_month.diff(start_of_month, 'weeks') + 1;
tR += Array(weeks_in_month).fill(null).map((x, i) => moment(tp.file.title,'YYYY-MM').startOf('month').startOf('IsoWeek').add(i, 'w').format("- [[[]GGGG-[W]WW[#]GGGG-[W]WW[|]GGGG[-W]WW[]]]")).join('\r\n')
%> |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, is it possible to embed each week of a certain month into that monthly note? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’ve been loving getting to do my regular (daily, weekly, monthly, yearly) reviews through Templater. I’ll list how I’m doing those at the bottom, but how can get a monthly review note to list all the weekly notes for that month? That’s the one part of my regular review workflow I haven’t been able to figure out.
Daily Note
Link to previous day’s note (using tp.file.title so I can populate them all correctly for future dates)
[[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>|⬅]]
Link to the parent weekly note
WEEK - [[<% tp.date.now("GGGG-[W]WW", 0, tp.file.title, "YYYY-MM-DD") %>]]
List all Daily Notes for any given Monthly Note
<%* const currentMonthDates = new Array(
moment(tp.file.title,'YYYY-MM').daysInMonth()).fill(null).map(
(x, i) => moment(tp.file.title,'YYYY-MM').startOf('month').add(i,'days').format("- [[[]YYYY-MM-DD[#]YYYY-MM-DD[|]DD/MM [⦗]ddd[.⦘]]]")).join('\r\n') %>
<%* tR += currentMonthDates %>
List all Monthly Notes for any given Yearly Note -
<% Array.apply(0, Array(12)).map(function(_,i){return moment(tp.file.title,'YYYY').month(i).format("- [[[]YYYY-MM[#]YYYY-MM[|]MM - MMMM[]]]")}).join('\r\n') %>
Beta Was this translation helpful? Give feedback.
All reactions