Obsidian Publish currently doesn’t provide any way to add Schema structured data to published pages, which is a critical limitation for SEO. Schema markup (JSON-LD) helps search engines understand your content and can dramatically improve how your pages appear in search results—think rich snippets with star ratings, author info, publication dates, breadcrumbs, and more. The problem is that Schema markup needs to be injected into the HTML section, which Obsidian Publish doesn’t give us access to.
The cleanest solution would be to support Schema definitions directly in YAML frontmatter. For example, you could write something like schema: {type: Article, author: “Jane Doe”, datePublished: “2024-11-04”} in your note’s frontmatter, and Obsidian would automatically convert this into proper JSON-LD markup in the generated HTML.
Alternatively, even just a simple “Custom HTML for ” textarea in Publish settings would work—let users manually add whatever Schema markup, analytics tags, or meta tags they need.