Hi everyone,
I am trying to create a template with a header, that links to the day and month before and ahead. I am using the templater plugin and the periodic dates plugin.
This is my code:
yesterday | today | tomorrow
[[<% tp.date.now("YYYY-MM-DD (ddd)", -1, tp.file.title, "YYYY-MM-DD (ddd)") %>]] | <% tp.date.now("YYYY-MM-DD (ddd)", 0, tp.file.title, "YYYY-MM-DD (ddd)") %> | [[<% tp.date.now("YYYY-MM-DD (ddd)", 1, tp.file.title, "YYYY-MM-DD (ddd)") %>]]
last month | this month | next month
[[<% tp.date.now("YYYY-MM-MMMM", -1, tp.file.title, "YYYY-MM-MMMM") %>]] | <% tp.date.now("YYYY-MM-MMMM", 0, tp.file.title, "YYYY-MM-MMMM") %> | [[<% tp.date.now("YYYY-MM-MMMM", 1, tp.file.title, "YYYY-MM-MMMM") %>]]
The problem:
the link to the upcoming month renders the same result as the actual / current month. I can’t see why this is happening?
I really appreciate your help.
Thanks!