You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any `PageData` instance exposes two methods for accessing rendered output:
957
+
958
+
-`await page.renderInnerPage({ pages })` returns the page content as rendered by its builder (markdown converted to HTML, for example) without a layout wrapper applied.
959
+
-`await page.renderFullPage({ pages })` returns the complete page output with its layout applied.
960
+
961
+
Both methods are async and require the full `pages` array. They are available inside templates and in `global.data.js`. They are not available inside page functions or layouts.
962
+
963
+
For templates that render many pages, pre-render in parallel and cache results to avoid doing the same work twice when producing several output files from one template:
There are a few important (and optional) global assets that live anywhere in the `src` directory. If duplicate named files that match the global asset file name pattern are found, a build error will occur until the duplicate file error is resolved.
0 commit comments