Display frontmatter values in body of notes on Obsidian Publish

I’ve seen this request evolve through different title, and today I wrote an answer to a similar request:

In your case, using publish, you do need to get the values as static text eventually, and as such the current option could be to use the Linter plugin and create a custom rule which update a static placeholder with the value from the frontmatter.

This is otherwise known as persisting the result of a query, but since you don’t want the code of the query to be shown in your published page I think your best option would be to create a QuickAdd macro doing this transformation to update the static placeholder.

2 Likes