With my expanding number of templates (general note, daily, literature, video, etc.), I got tired of changing the YAML/frontmatter in each one as my YAML preferences changed over time. Now I use a header template that I change once and is inserted into all newly created templates/notes. Some people like to have different YAML depending on the type of note, but I like to keep it mostly the same (at the moment anyway). I’ll add something here or there if needed. This uses the TemplatER community plugin.
Create a x-header
template (named x-
to keep it at the bottom of the template modal list, but of course can be anything you want) with your current YAML preferences.
---
created: <% tp.file.creation_date("dddd MMMM Do YYYY HH:mm:ss") %>
alias: []
tags: []
state:
more YAML..
as much as you can endure....
---
Now, in all your other templates, put tp.file.include
at the top and add whatever else is needed below per template (For example, here’s a sample book template).
<% tp.file.include("[[x-header]]") %>
# <% tp.file.title %>
Author: [[Author Name]]
Type: [[Books]]
Related: %% Links to pages not referenced in the content %%
## Summary
## Notes
## Quotes
## Questions
## Terms
Change x-header
, all newly created notes made from your different templates pick it up!