Skip to main content

Module frontmatter

Module frontmatter 

Source
Expand description

Shared frontmatter extraction and .meta.json sidecar files. Shared frontmatter extraction and .meta.json sidecar support.

This module bridges content files (Markdown with YAML/TOML/JSON frontmatter) and the plugin pipeline by persisting parsed metadata as .meta.json sidecar files that survive the compilation step.

Functionsยง

emit_sidecars
Emits .meta.json sidecar files for all Markdown content.
read_sidecar
Reads a .meta.json sidecar for a given HTML file path.
read_sidecar_for_html
Reads a .meta.json sidecar matching an HTML path in the site dir, looking up by the corresponding content-relative path.