{{date}} in template is saved as "{ date }":

Once you’ve done the above, delete everything above this line.

Steps to reproduce

Create a template with two YAML properties - date: and tags:

date: {{date}}
tags:

This successfully resolves to today’s date when applied to a new note.

Now update the template in any way, such as by adding a tag “test”. This causes the template file to be re-saved.

Apply the template to a new note. The defect is that the date is no longer resolved to today’s date

Suspected root cause: The YAML save() method incorrectly changes the YAML date format.

When viewing the template file using Source mode, the YAML date format can be seen to have changed as per below, and this no longer resolves to today’s date when applied to a note.

date:
“{ date }”:
tags:

  • test

At the moment if you use the metadata editor (Properties in document) at all, unquoted template variables will be corrupted.

You can quote the template variable(s) to still be able to use the metadata editor or only edit the template in source mode for now.

---
date: "{{date}}"
tags:
---

source mode | live preview

CleanShot 2026-03-22 at 13.59.21


There’s a request here for the help docs to mention the quoting of template variables:

Thank you very much for the workaround.

This could be a relevant FR :blush: :

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.