Skip to main content

notes_layout

Function notes_layout 

Source
fn notes_layout(path: &str) -> NotesLayout
Expand description

按路径区分版式;忽略查询串、片段与结尾的 /。 与路由表一致:/notes/book/:id 恰好两段才是笔记本,其余单段 /notes/<x> 都是笔记 (含 slug 恰为 book 的笔记)。