The following two markdown pages have frontmatter described by following stackbit.yaml.

index.md:

---
title: Home
banner:
  title: Welcome
  actions:
    - label: Find out more
      url: "#more"
    - label: Login
      url: /login
      is_primary: true
  sections:
    - title: Nulla quis porta mi
      subtitle: Lorem ipsum dolor sit amet, **consectetur** adipiscing elit.
      component: features.html
      type: features
      features:
        - title: Better
          subtitle: We are better
          icon: fa-thumbs-up
          icon_accent_color: accent1
        - title: Stronger
          subtitle: We are stronger
          icon: fa-dumbbell
          icon_accent_color: accent1
    - title: Lorem ipsum dolor sit amet
      subtitle: Integer congue leo id libero egestas, vel dignissim ipsum gravida.
      component: spotlight.html
            type: spotlight
layout: home
---

page.md:

---
title: Welcome Page
subtitle: Nam sed venenatis est
image: /page-image.png
layout: page
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Curabitur malesuada malesuada lectus. Nulla quis porta mi.
Nulla auctor fringilla enim eget consequat.

stackbit.yaml:

models:
  home:
    type: page
        label: Home
    layout: home
    hideContent: true
    singleInstance: true
    file: index.md
    fields:
      - type: string
        name: title
        label: Title
        description: Page title
        required: true
      - type: object
        name: banner
        label: Banner
        labelField: title
        description: Home page banner
        fields:
                    - type: text
            name: title
            label: Banner Title
            required: true
          - type: markdown
            name: subtitle
            label: Banner Subtitle
                    - type: list
            name: actions
            label: Banner Actions
            items:
              type: action
              labelField: label
      - type: list
        name: sections
        label: Sections
        description: Home Sections
        items:
          type: reference
          models: [features, spotlight]
  page:
    type: page
    label: Page
    layout: page
    fields:
      - type: string
        name: title
        label: Page Title
        required: true
      - type: markdown
        name: subtitle
        label: Page Subtitle
        description: Appears below the page title
      - type: image
        name: img
        label: Image
  features:
    type: object
    label: Features
    labelField: title
    fields:
      - type: string
                name: title
        label: Title
        required: true
        default: Features Section
      - type: markdown
        name: subtitle
        label: Subtitle
        description: Text below the section title
            - type: string
        name: component
        label: Component
        required: true
        hidden: true
        default: features.html
      - type: list
        name: features
        label: Features List
        description: The list of features
        items:
          type: object
          labelField: title
          fields:
            - type: string
              name: title
              label: Feature Title
              required: true
            - type: markdown
              name: subtitle
              label: Feature Subtitle
            - type: string
              name: icon
              label: Feature Icon
              description: Font Awesome Icon
            - type: enum
              name: icon_accent_color
              label: Icon Accent Color
              options: [accent1, accent2, accent3, accent4]
  spotlight:
    type: object
    label: Spotlight
    labelField: title
    fields:
      - type: string
                name: title
        label: Title
        required: true
        default: Spotlight Section
      - type: markdown
        name: subtitle
        label: Spotlight Section Subtitle
      - type: string
        name: component
        label: Component
        required: true
        hidden: true
        default: spotlight.html
  action:
    type: object
    label: Action 
    labelField: label
      fields:
      - type: string
        name: label
        label: Label
        required: true
      - type: string
        name: url
        widget: url
        label: URL
        required: true
        default: "#"
      - type: boolean
        name: is_primary
        label: Is Primary
        description: Primary actions are emphasized theme's primary color
        default: false