Contents

TitleHeading

A directive that specifies a title heading for a given documentation page.

Declaration

@TitleHeading(_ heading: String)

Parameters

  • heading:

    The text for the custom title heading.

Overview

Place the TitleHeading directive within a Metadata directive to configure a documentation page to show a custom title heading. Custom title headings, along with custom PageImage and PageColor, allow for the creation of custom kinds of pages beyond just articles.

A title heading is also known as a page eyebrow or kicker.

# ``SlothCreator``

@Metadata {
    @TitleHeading("Release Notes")
}

A custom title heading appears in place of the page kind at the top of the page.

Containing Elements

The following items can include a title heading element:

See Also

Customizing the Presentation of a Page