Updated template, this template can be used as a template for Calendar, creating “Today”, and in an empy note, which has a title “YYYY-MM-DD”. It moves the file in place (if needed), and renames it, which “fixes” the calendar getting confused:
---
tags: journal
date: {{date:YYYY-MM-DD}}
up:
rating:
---
<< [[<% moment(tp.file.title,'YYYY-MM-DD').add(-1,'days').format("YYYY-MM-DD") %>|⏪ Yesterday(<% moment(tp.file.title,'YYYY-MM-DD').add(-1,'days').format("YYYY-MM-DD") %>)]] | [[<% moment(tp.file.title,'YYYY-MM-DD').format("YYYY") %>-W<% moment(tp.file.title, "YYYY-MM-DD").week() %>|Week: <% moment(tp.file.title, "YYYY-MM-DD").week() %>]] | [[<% moment(tp.file.title,'YYYY-MM-DD').add(1,'days').format("YYYY-MM-DD") %>|Tomorrow(<% moment(tp.file.title,'YYYY-MM-DD').add(1,'days').format("YYYY-MM-DD") %>) ⏩]] >>
<% tp.file.move("/Journal/" + tp.file.title) -%>
<% tp.file.rename(tp.file.title) -%>
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd") %>, <% tp.file.title %>
<% tp.web.daily_quote() %>
## Today
Import yesterday's remaining todos!<%tp.file.cursor(0)%>
## Today I Learned
My Weekly and Monthly templates are still a “work in progress”, they just show a title, haven’t figured out yet what would be usefull.
FYI, weeknumbers are surprisingly complicated, for myself I partly follow the US numbering, but with the week starting on a Monday, for more reading, see: momentjs - week numbers