(s: &str)
| 396 | } |
| 397 | |
| 398 | fn slug(s: &str) -> String { |
| 399 | s.to_lowercase() |
| 400 | } |
| 401 | |
| 402 | fn require_str(fm: &Map<String, Value>, key: &str) -> Result<String> { |
| 403 | opt_str(fm, key).ok_or_else(|| CanonicalError::Lift(format!("frontmatter missing '{key}'"))) |