Skip to content

Warning showing up in YAML section asking me to change properties #1225

Answered by Zachatoo
CLaBruno asked this question in Help
Discussion options

You must be logged in to vote

I am getting a warning saying that some of the data is incompatible with the property key.

It is incompatible, since it's not a date yet. I usually escape my frontmatter using <% "---" %> instead of --- so I don't get that error in my template, but it still gets applied in the note I apply the template to.

<% "---" %>
Created: <% tp.file.creation_date() %>
Modified: <% tp.file.modified_date() %>
<% "---" %>

Also, the date and time are not updating when edited on the last_modified property.

That is expected. They don't update, they are executed once when the template is executed, and then it's static plain text.

If you want created/modified dates in frontmatter to auto update, I highl…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AB1908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants