<%*
var fileDate = moment(tp.file.title);
// moment dates are mutable
let prevDay = moment(fileDate).subtract(1, 'd').format('YYYY-MM-DD');
let nextDay = moment(fileDate).add(1, 'd').format('YYYY-MM-DD');
let prevDayWeek = moment(fileDate).subtract(1, 'd').format('gggg-[W]ww');
let nextDayWeek = moment(fileDate).add(1, 'd').format('gggg-[W]ww');
let yearLink = fileDate.format('YYYY');
let quarterLink = fileDate.format('YYYY [Q]Q');
let monthLink = fileDate.format('YYYY-MM');
let monthLongName = fileDate.format('YYYY MMMM');
let weekLink = fileDate.format('gggg-[W]ww');
let basePath = Journal/${yearLink}
;
let weekPath = ${basePath}/${weekLink}
;
let prevDayFile;
let nextDayFile;
if (prevDayWeek === weekLink) {
prevDayFile = ${weekPath}/${prevDay}
;
} else {
prevDayFile = ${prevDayWeek}/${prevDay}
;
}
if (nextDayWeek === weekLink) {
nextDayFile = `${weekPath}/${nextDay}`;
} else {
nextDayFile = `${nextDayWeek}/${nextDay}`;
}
let yearReviewFile = `${basePath}/${yearLink} Review`;
let quarterReviewFile = `${basePath}/${quarterLink} Review`;
let monthReviewFile = `${basePath}/${monthLongName} Review`;
let weekReviewFile = `${weekPath}/${weekLink} Review`;
id: <% crypto.randomUUID().replace("-", "") %> aliases: <% fileDate.format("dddd MM-DD-YYYY")%> tags: daily_note <% fileDate.format("YYYYMMDD") %> <% weekLink %> <% monthLink %> <% quarterLink %> <% yearLink %> type: periodic_daily status: ๐ฅ weekday: <% fileDate.format("dddd") %> week: <% fileDate.format("ww") %> month: <% fileDate.format("MM") %> year: <% fileDate.format("YYYY") %> created: <% moment().format("YYYY-MM-DD HH:mm") %> modified: <% moment().format("YYYY-MM-DD HH:mm") %>
<%*
// โฎโฎ โฎ 2021 โบ Q4 โบ 12 โบ W49 โฎ โฏโฏ
// [[path/to/file|display_text]]
// ๐= current day
// ๐ = dashboard
// Get Started With Obsidian Periodic Notes and Templater | Kevin Quinn
let navStr = [[${prevDayFile}|โฎโฎ]] โฎ [[${yearReviewFile}|${yearLink}]] โบ [[${quarterReviewFile}|${fileDate.format('[Q]Q')}]] โบ [[${monthReviewFile}|${fileDate.format('MM')}]] โบ [[${weekReviewFile}|${fileDate.format('[W]ww')}]] โฎ [[${nextDayFile}|โฏโฏ]]
;
tR += navStr
%> || ๐ Today || [[03.01 Dashboard|๐ Home]]
![[03.02 Navigation|full no-title nlk]]
- Summary::
name Import Agenda
type command
action Shortcut Launcher: Import Agenda
color purple
^button-import-agenda-btn
const { TaskViews } = customJS;
let dateString = '<% tp.file.title %>';
TaskViews.buildDailyOverview(app, dv, this, dateString)