Skip to main content

document

Function document 

Source
pub fn document(
    body: &str,
    meta: &PageMeta,
    title: &str,
    description: &str,
    route: &str,
    config: Option<&SiteConfig>,
) -> String
Expand description

The full-document wrapper: doctype, head (charset, viewport, title, description, canonical, Open Graph, Twitter card, JSON-LD), body. route is the page’s site-relative HTML path (index.html, guides/x.html). Length guidance (title <=60, description <=155) surfaces as warnings in the report, not build failures.