PageFrontmatter #
Frontmatter of a page. KawaPress keeps the data open, so any key an author writes is allowed and typed unknown. A plugin that reads a key declares it from its own package, which gives every reader the exact type:
Fields #
false hides the comment section of this page.
false leaves this page out of the feeds.
Publication date as a quoted string, for example "2026-11-20".
Author name, or an object with name, email and link.
Cover image: a site path such as /images/cover.png, or an absolute URL.
false turns image zoom off for every image of this page.
false hides the last updated time of this page. A page a plugin adds
has no git history, so it shows a time only when this is a date string.
false hides the edit link of this page. A page a plugin adds has no
source file, so it shows an edit link only when this is an absolute URL.
false leaves this page out of .md, llms.txt and llms-full.txt.
Description used in llms.txt instead of the page description.
Position of this page in llms.txt; lower numbers come first.
false skips the share image of this page.
false keeps this page out of the search index.
false leaves this page out of sitemap.xml.
doc (default), home for a landing page, page for a plain page, the
name of a globally registered component, or false for the page alone.
false hides the navigation bar of this page.
false hides the sidebar of this page.
false hides the outline column on wide screens.
false turns every outline off for this page.
false hides the footer of home and page layouts.
CSS class added to the page shell.
Hero block of a home page.
Feature cards of a home page.
Page title. Without it, the first level-1 heading is used.
Page description, used for <meta name="description">.
Template for <title>, where %s is the page title; false shows the page title alone.
Tags added to the <head> of this page only.
Any other key an author writes.
Notes #
declare module 'kawapress' {
interface PageFrontmatter {
comments?: boolean
}
}The keys are optional because the value comes from the author. Check it at runtime before trusting it.
Full type signature
interface PageFrontmatter {
comments?: boolean
feed?: boolean
date?: string
author?: string | { name: string; email?: string; link?: string }
image?: string
imageZoom?: boolean
lastUpdated?: string | boolean
editLink?: string | boolean
llms?: boolean
llmsTxt?: string
order?: number
ogImage?: boolean
search?: boolean
sitemap?: boolean
layout?: NagiPageLayout
navbar?: boolean
sidebar?: boolean
aside?: boolean
outline?: boolean
footer?: boolean
pageClass?: string
hero?: NagiHomeHero
features?: NagiHomeFeature[]
title?: string
description?: string
titleTemplate?: string | false
head?: HeadConfig[]
[key: string]: unknown
}

Comments