Skip to main content

slug_from_path

Function slug_from_path 

Source
pub fn slug_from_path(relative_path: &str) -> String
Expand description

Derive a slug from a relative file path. “notes/My Page.md” -> “notes/my-page”