Skip to main content

inject_missing_keys

Function inject_missing_keys 

Source
pub fn inject_missing_keys(body: &str, keys: &[String]) -> String
Expand description

Injects empty key: "" entries into the frontmatter block for any key not already present. No-op for files without a frontmatter block.