(s: &str)
| 262 | } |
| 263 | |
| 264 | fn slug(s: &str) -> String { |
| 265 | s.to_lowercase() |
| 266 | } |
| 267 | |
| 268 | fn require_str(fm: &Map<String, Value>, key: &str) -> Result<String> { |
| 269 | opt_str(fm, key).ok_or_else(|| CanonicalError::Lift(format!("frontmatter missing '{key}'"))) |