View Single Post
Old 06-21-2026, 04:51 PM   #73
warzoo
Junior Member
warzoo began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2026
Device: iPhone
Quote:
Originally Posted by emagin View Post
Hi, enjoying the plugin with many ebook notes, thanks!

FRONTMATTER changes
Is it possible to send Frontmatter information to the page on Create or Update

TEMPLATES
Is it possible to use an existing obsidian template from a location
(EX: /Reference/Templates/Book)
when Create new book notes

Thank you!
Yes — this works now. You can add YAML frontmatter by putting it in the note header (Config → Formatting Options). The header is written once, at the top of each note, which is exactly where frontmatter has to go.

Two things to get right:

Frontmatter has to be the very first thing in the file, so the header must start with --- and have no blank line before it (the default header begins with a newline — delete that).
For any value that might contain a colon or other special character, add :yaml so it's quoted safely, e.g. {title:yaml}.
Example header:

---
title: {title:yaml}
author: {authors:yaml}
isbn: {isbn}
published: {pubdate}
tags: [book, highlights]
---
On create, that becomes the note's frontmatter. On update (sending more highlights to the same note later) the header isn't written again, so the frontmatter isn't duplicated — and if you use "Write highlights directly to vault files" with the keep-sorted/merge option, your existing frontmatter is left untouched. The one thing it doesn't do is edit fields in frontmatter that's already there; it only writes frontmatter when the note is first created.

If you'd rather keep the layout in a file, you can also point H2O at a template file in your vault (Config → Formatting Options → "Note template file", e.g. Reference/Templates/Book) and put the frontmatter there instead — same placeholders. That covers the "use an existing template" question too.

It's in the latest release: https://github.com/warzoo/highlights...ses/tag/v1.8.0
warzoo is offline   Reply With Quote