Skip to main content

get_page_name

Function get_page_name 

Source
pub fn get_page_name(doc: &PostDocument, initial: &str) -> String
Expand description

Compute a page name for a sub-collection document.

If the main document is “index.html”, use just the initial as the name. Otherwise, append the initial to the document name.

Port of Collector::getPageName.