add_page
add_page(page=)Adds the page page describes to the adapter’s directory: path (relative, required but for kind: home), kind (default page), title, content ({mediaType, value}, default Markdown), dates ({date, lastmod, publishDate, expiryDate}), params, build, cascade, outputs and the other front matter fields (not lang, content.markup). A path added again replaces the earlier page. Prints nothing.
Arguments#
| Argument | Type | Required |
|---|---|---|
page | map | yes |
Details#
- Kind: Function, implemented by fugo.
- Available in: content adapters (
_content.html) and the partials they call only. - Output: escaped like any value, unless marked
safe. - Site-bound: reads the site or the page being rendered; in a component, pass
page=or declare@__nh.