Homepage
Two layouts replace the doc interface (sidebar, table of contents, breadcrumbs) with a landing page:
layout: homeis a project landing page: a hero with actions, then feature cards. This site's index uses it; Banner home shows thebannervariant.layout: helpis a help center: a search field, topics and popular articles. See Help center and the example.
---
layout: home
hero:
name: Bark
text: Markdown in, docs site out.
tagline: Drop .md files in a folder. Get a searchable, navigable docs site.
image: /brand-image.svg
actions:
- theme: brand
text: Get Started
link: /guide/getting-started
- theme: minimal
text: View on GitHub
link: https://github.com/hawkinslabdev/bark
features:
- icon: ⚡
title: Hot reload
details: Edit a file, see it live.
---With an image file, the hero sits beside it; with an emoji or no image, the hero is centered. Add variant: banner under hero for a full-width band in the brand colour.
Hero
| Field | Type | Required | Description |
|---|---|---|---|
name |
string |
no | Small heading above text, typically the product name. |
text |
string |
no | The big headline. |
tagline |
string |
no | Supporting subtext below text. |
image |
string |
no | An image path or URL, shown beside the headline (below it on phones), or a single emoji/character, shown above a centered headline. |
actions |
HeroAction[] |
no | Call-to-action buttons. |
variant |
"banner" |
no | Renders the hero as a full-width band in the brand colour, with features as centered columns and a dark footer below. |
HeroAction
| Field | Type | Required | Description |
|---|---|---|---|
theme |
"brand" | "alt" | "minimal" |
no | brand is the filled button with an arrow, alt the outline button, minimal a text link (with an external-link icon when external is true). Defaults to brand. |
text |
string |
yes | Button label. |
link |
string |
yes | Button target. Internal paths and external URLs are supported. |
external |
boolean |
no | Opens the link in a new tab. Defaults to true for absolute http:// and https:// URLs. |
Features
Array of cards rendered in a responsive grid below the hero.
| Field | Type | Required | Description |
|---|---|---|---|
icon |
string |
no | An emoji, short text, inline SVG string (<svg>...</svg>), or image URL shown above the title. Paths starting with / or http(s):// render as <img> tags; inline SVG strings are rendered directly. |
iconImage |
FeatureIconConfig |
no | A themed icon object for separate light and dark variants. Takes priority over icon when both are set. |
title |
string |
yes | Card heading. |
details |
string |
yes | Card body text. |
link |
string |
no | Makes the whole card a link. |
FeatureIconConfig
| Field | Type | Description |
|---|---|---|
src |
string? |
A single image URL used in both light and dark mode. |
light |
string? |
Image URL shown in light mode. Pair with dark for full theming. |
dark |
string? |
Image URL shown in dark mode. Pair with light for full theming. |
alt |
string? |
Alt text for the image. Defaults to an empty string, treating the icon as decorative. |
Note
hero.image accepts a URL or a single emoji/character. The iconImage format is not supported.
Markdown below the front matter renders beneath the features grid.
Help center
layout: help is a search-first landing page for end-user documentation: a title, a large search field, a list of topics with article counts, popular articles and a closing contact line.
---
layout: help
hero:
text: How can we help?
tagline: Guides and answers for your product.
features:
- title: Running payroll
details: Pay runs, corrections and holiday pay.
link: /running-payroll/
popular:
- text: Run your first payroll
link: /running-payroll/first-run
contact: "Can't find what you need? [Contact support](mailto:support@example.com)"
---| Field | Description |
|---|---|
hero.text, hero.tagline |
Title and subtitle above the search field. Other hero fields are ignored. |
features |
Topics, listed in order. The article count is the number of pages under each topic's link; it's hidden when there are none. icon is ignored. |
popular |
Links (text, link) shown in two columns. Optional. |
contact |
One line of Markdown closing the page. Optional. |
The search field opens the site search. Markdown below the front matter renders after these blocks.
Examples
Both example pages ship with these docs. Copy one into your docs/ folder as a starting point.
- Banner home:
layout: homewithvariant: banner. - Help center:
layout: help, with topics pointing at this site's own sections.