(s: &str)
| 331 | } |
| 332 | |
| 333 | fn slug(s: &str) -> String { |
| 334 | s.to_lowercase() |
| 335 | } |
| 336 | |
| 337 | fn require_str(fm: &Map<String, Value>, key: &str) -> Result<String> { |
| 338 | opt_str(fm, key).ok_or_else(|| CanonicalError::Lift(format!("frontmatter missing '{key}'"))) |