Skip to main content

PageHead

Function PageHead 

Source
pub fn PageHead(_: PageHeadProps) -> Element
Expand description

Per-page head tags: title, description, Open Graph, Twitter Card, canonical.

Server renders (the SSG prerender) emit real <meta>/<link> elements via document::*, so every prerendered page carries its own share-card and canonical tags for crawlers and link unfurlers. The wasm client instead creates-or-patches the live head (the tags may come from a prerendered page OR be absent on an SPA-fallback route), keeping the DOM tag-set identical without ever duplicating an element.

ยงProps

For details, see the props struct definition.