useDocumentTitle

Set document.title from a page component.

useDocumentTitle(title, suffix = '')

Sets document.title to "title · suffix", or just the suffix when there is no title. Call it from each page component.

The tab now reads: Banana vault · Minion HQ

API

  • titlestring

    Page title; may be empty.

  • suffixstring
    Default: ''

    Site name appended after a "·".