frontmatter
Author the YAML frontmatter block of a Neko Markdown page — label, icon, order, tags, visibility, permalink, redirect, redirectSlug, layout, presentation, meta, nav, toc, backlinks, password. Use when configuring an individual page.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- frontmatter
- description
- Author the YAML frontmatter block of a Neko Markdown page — label, icon, order, tags, visibility, permalink, redirect, redirectSlug, layout, presentation, meta, nav, toc, backlinks, password. Use when configuring an individual page.
03 SKILL.md 正文
Page frontmatter
Page metadata lives in a ----fenced YAML block at the top of a .md, or in
a sibling .yml file with the same base name (e.g. page.yml next to
page.md). Frontmatter wins if both exist.
---
label: Friendly nav label
icon: rocket
order: 100
tags: [guide, install]
visibility: public
---
# Page title
Frequently used keys
| Key | Type / values | Notes |
|---|---|---|
label |
string | Override the sidebar + top-nav label. Also the <title> fallback when no title is set. |
icon |
UIcon name, :emoji:, <svg>, image path |
Sidebar / breadcrumb icon. |
order |
number / alpha string / vSemver |
Reorders within parent folder. Higher number = higher position. |
tags |
list | Auto-generates /tags/<tag>/ index pages. |
category |
string or list | Auto-generates /categories/<cat>/ pages. |
date |
yyyy-mm-dd or yyyy-mm-ddThh:mm |
Used by blog ordering. |
author |
string, email, list, object (name, email, link, avatar) |
Shown under the title. |
layout |
default, page, central, blog |
Page chrome variant. |
visibility |
public, hidden, protected, private |
Navigation & search behaviour; password gating. |
password |
string | Per-page encryption. Pair with --password at build. |
searchExclude |
boolean | true to omit the page from search.json. Folder-level: set the same key in index.yml. |
presentation |
true / a mapping of deck options |
Builds the page as a full-screen slide deck. See the presentation skill. Decks are kept out of the sidebar and the search index automatically. |
permalink |
string | Custom URL. Wins over the file path. |
redirect |
string | Moves the page: its URL serves a redirect to another page (path relative to the file, or root-relative) or an external URL. The page's content is not rendered, and it is left out of the sidebar, navbar, search and sitemap. |
redirectSlug |
string | Expose this page at the short URL /redirect/<slug>. Neko emits a tiny meta-refresh HTML file pointing back at the page. |
target |
blank, self, parent, top |
How sidebar link opens. |
templating |
boolean | false to disable {{ … }} for this page. |
expanded |
boolean | Folder navigation: expand on load (used in index.yml). |
breadcrumb |
boolean | Hide the breadcrumb on this page. |
nav.badge |
string `TEXT | variant` or object |
nav.mode |
default, stack |
Per-top-level-folder navigation style. |
nextprev.mode |
show, hide, exclude |
Next/prev button visibility and sequence membership. |
toc.depth |
2, 2-3 (default), 1-4, 2,4, etc. |
Right-sidebar heading depth. |
toc.label |
string | Right-sidebar heading. |
backlinks.* |
enabled, title, maxResults |
See backlinks. |
meta.title |
string | Custom <title> value. |
meta.description |
string | Custom meta description. |
image |
path or URL | Feature image (overrides auto-detected first image). |
cover |
path or URL | Hero cover image. |
cardImage |
path or URL | Blog posts: the image on the post's card (index grid, "Read next", search results) when it should differ from cover. Falls back to cover. |
readNext |
list of post links (file path / URL / slug) | Blog mode: related posts for the post's Read next section. Auto-fills with recent posts when short. Configured site-wide via blog.readNext. |
title |
string | Discouraged — write a real # H1 instead. |
Order rules in one paragraph
order: 100 beats order: 10 beats no-order alpha beats order: zulu beats
order: v1.0 beats order: -10. Folders cluster at the top of each order
group. Home page defaults to order: 10000.
Sibling .yml form
page.md
page.yml ← only one or the other, frontmatter wins if both
Tips
- Put all frontmatter at the very top of the file, no blank lines before
the first
---. - Stick to lowercase keys.
- Prefer
labelovertitle; prefer a real# H1. - Use
_drafts/(folder prefix_) for unfinished pages.
04 同仓库更多 Skills
youtube
Embed a YouTube video by pasting its URL on its own line. Neko auto-detects watch/youtu.be/embed forms and honours timestamp, autoplay, loop, and mute parameters.
workflow
Render a workflow diagram from a node-and-arrows DSL — labelled boxes with icons and optional badges, auto-arranged in columns. Use for pipelines, data flows, sign-off chains, ETL diagrams.
video
Author a video as a single Markdown file (`video:` front matter) — scenes separated by horizontal rules, every block animating in on its own, video components (lockup, swap, typewriter, scramble, counter, stats, chart, code, terminal, browser/window/phone, cursor, lower-third, captions, quote, steps, checklist, grid/card, cta, logo, media), scene transitions and camera moves, and a synthesized voice-over (`--- {narration}` parts, `narration:` voice, `neko voiceover`) — preview it in the browser and render it to MP4 with `neko render` (Playwright + ffmpeg). Also covers the `[!video]` component that embeds the rendered file in a page. Use when asked for a video, an animated explainer, a product or release teaser, a changelog video, a motion graphic, a narrated walkthrough, or an MP4 from docs content.
update-documentation
Workflow for updating Neko documentation — base every page on the real source code, never invent APIs, warn loudly when the source isn't available, and check that the page (and any changed `tesserae` sample) renders correctly with Playwright / snapframe / a visual check. Use whenever you add or edit docs that describe code, APIs, components, or live samples.
tesserae
Render a live Tesserae C# UI block — Neko compiles and executes the C# at build time and shows both the code and a working preview side-by-side. Use only when the project documents Tesserae or runs live C# samples.
table
Render a Markdown table with alignment, compact mode, and no-wrap option. Use for any tabular comparison, reference matrix, option list.