(s: &str)
| 318 | } |
| 319 | |
| 320 | fn slug(s: &str) -> String { |
| 321 | s.to_lowercase() |
| 322 | } |
| 323 | |
| 324 | fn require_str(fm: &Map<String, Value>, key: &str) -> Result<String> { |
| 325 | opt_str(fm, key).ok_or_else(|| CanonicalError::Lift(format!("frontmatter missing '{key}'"))) |