pub fn get_page_name(doc: &PostDocument, initial: &str) -> StringExpand 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.