Skip to content
New to Sumi? Read the introduction.
Sumi
On this page

Landing pages#

A landing page is a Markdown file with template: landing.html. Its sections are described in front matter, so the page stays data you can review in a diff — no HTML, no components to import. The home page of this site is one.

docs/index.md
---
template: landing.html
hero:
  eyebrow: "v2.0 is out"
  title: "Ship docs<br>*people read*."
  text: One sentence that explains the product.
  actions:
    - {text: Get started, link: guide/, icon: rocket, primary: true}
    - {text: GitHub, link: "https://github.com/me/project", icon: brand-github}
  install: pip install my-project
sections:
  - type: features
    title: Why it is different
    items:
      - {icon: zap, title: Fast, text: Builds in under a second., link: guide/speed/}
      - {icon: lock, title: Private, text: Runs entirely on your machine.}
  - type: cta
    title: Ready?
    actions:
      - {text: Read the guide, link: guide/, primary: true}
---

A link to a Markdown file, such as guide.md or guide/speed.md#cache, leads to the page built from it. Like a Markdown link, it is relative to the landing page, and the build warns when the file doesn't exist. Other links are relative to the site root, like nav entries. Text fields accept inline Markdown.

Hero#

eyebrowstring
A short label above the title, such as a release announcement.
titlestring
The headline. <br> breaks lines; *emphasis* is drawn in the accent colour. Defaults to the page title.
textstring
One or two sentences under the title. Defaults to site_description.
actionslist
Buttons: text, link, icon, primary.
installstring
A command shown in a click-to-copy box.
codeobject
A code card beside the text: title, lang, content.
imagestring
An image beside the text, if there is no code.

Sections#

Every entry in sections has a type and optional eyebrow, title, text, id and tone: soft (a tinted background).

featuresKeys items, columns
A grid of features, each with icon, title, text and an optional link.
splitKeys bullets, actions, code or image or markdown, reverse
Text on one side, an illustration on the other.
statsKeys items
Big numbers: value and label.
stepsKeys items
A numbered sequence: title and text.
faqKeys items
Questions and answers: q and a (Markdown).
ctaKeys actions
A closing call to action.
content
The Markdown body of the page. If sections is omitted, the body is shown under the hero.

Tip

Keep the page body for content that agents and search should see. The front-matter sections are visual; the Markdown copy of a landing page contains its title, text and body.

Esc
↵ to open ↑↓ to move Esc to close
Keyboard shortcuts
Ctrl K /
Open search and commands
t
Toggle dark mode
[ ]
Previous / next page
j k
Previous / next heading
?
Show this help