I added the two <% "---" %> to comment out the YAML so that Obsidian won’t try to display the template with the Properties view on top in Live Preview.
Also, for next time, screenshots are alright, but putting your example(s) in a code block will make it easier for folks to jump in and offer assistance.