Skip to contents

The same hero and the same items the React tree renders, as a document a crawler, a reader mode or a text browser can read. Written into the page ahead of the React container and removed when React mounts, so it costs a reader with JavaScript nothing but is the whole page to a reader without it.

Usage

mui_prerender_html(items, config = mui_config())

Arguments

items

Items by section id, exactly as mui_build_site() assembles them.

config

The site configuration; see mui_read_config().

Value

A <div>, as a string, or "" when prerender is off.

Details

It mirrors the content, not the layout: one <section> per band and one <article> per item, whatever variant the band is drawn with. Arrangement is what a plain document does not need.