add_page

Signature
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#

ArgumentTypeRequired
pagemapyes

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.

    Type to search titles, headings and text.