Page files and their fields
A page of the portal is one file under portal/: its name is its file's, and its fields say what it shows. This page says how files are named, what each field holds, and how a page's text is written.
Files and names
A page is one file named <name>.page.yml (.page.yaml works the same), or a Markdown file, <name>.page.md, instead (see Markdown pages). A page with children has a directory of the same name beside it, holding the children's files. Every page lives under the repository's portal/ folder, and the one page file directly in portal/ is the home page.
my-model/
kanoniq.repository.json
model/
shop.kq # the model, untouched
portal/
Home.page.yml # the home page
Home/
Selling.page.yml # a section
Selling/
Checkout.page.yml # a sub-section
Order-Management.page.yml # "Order Management"
Logistics.page.yml
The file name is the page's name, encoded so it is safe as a file name and in a web address:
| The page's name | Its file name |
|---|---|
Order Management | Order-Management.page.yml (a space is written -) |
Point-of-Sale | Point%2Dof%2DSale.page.yml (a - is written %2D) |
R&D | R%26D.page.yml (other characters as % and two hex digits) |
Within a file you always write a page's name as it reads: page: Order Management, never the encoded form. In the built site, a page lives at its name as it reads too: Selling/Order Management/.
Renaming a page means renaming its file and its directory, and the tile that names it in its parent.
What a page holds
# portal/Home/Selling.page.yml
description: Everything the shop does to take an order and get paid.
icon: shopping-cart
announcement:
level: warning
text: Work in progress. **Checkout** is still being modeled.
text: |
Selling covers the storefront, the cart and checkout, and the order
record that logistics picks up from. Start from a sub-area below.
tiles:
- page: Checkout
- page: Order Management
- title: Selling, layered
description: The Selling domain in its layered view, Interfaces in use only.
icon: layers
view:
at: initial
domain: shop/selling
interfaces: used
| Field | Required | What it is |
|---|---|---|
description | yes | One line of plain text, under the title and on the page's tile |
title | no | The page's title; its name when left out |
status | no | published (the default), upcoming or draft; see Statuses |
icon | no | A Lucide icon by name, such as shopping-cart or layers |
announcement | no | A banner above the title: level is info or warning, text is inline Markdown |
text | no | A Markdown text between the title and the tiles; see A page's text |
tiles | no | The page's tiles, in order |
Any other field is an error.
A page a data migration links shows a Linked from box under its text: each migration whose link names the page file, its plateau and its dates, linked to its card on the migration plan where the site has one.
Markdown pages
A page that is mostly prose reads better as Markdown. Write it as <name>.page.md: it opens with frontmatter holding the page's fields, as a .page.yml holds them, less text, and the Markdown after it is the page's text (see A page's text).
---
description: From a basket to a parcel at the door.
icon: route
tiles:
- page: Returns
---
An order changes hands four times between the shopper's basket and the carrier's van.
| Step | Held by |
| --- | --- |
| Basket | Basket Service |
It is a page in every other way: named and encoded as any page, mirrored by a directory of the same name, with tiles of its own, and it may be the home page. A file with no frontmatter is an error, and so is a text field in it, since the body is the text. One name as both Selling.page.yml and Selling.page.md is two files for one page, an error too.
A page's text
Every page's text is written in the same Markdown: a page's text, a Markdown page's body and a decision record's text. It is CommonMark, with GitHub's additions: tables, strikethrough, task lists, bare URLs as links, and footnotes. A heading takes the id GitHub gives it, so [Context](#context) reaches a heading named Context. Raw HTML is shown as text, so a page carries no markup or script of its own.
An announcement's text stays on one line: a table, a list or any other block in it is reduced to its text, and an image to its alternative text.
Images
An image is a file under portal/, named by a path relative to the file whose text shows it, as a Markdown preview finds it. In portal/Home/Selling.page.md,  shows portal/Home/Selling/flow.svg. It may sit anywhere under portal/; the page's own folder is the usual place. No image comes from another host: a URL, an absolute path, or a path that leaves portal/ is an error, KQP014.
- It is a PNG, JPEG, GIF, WebP or SVG file, by its extension, and its first bytes must agree, or it is KQP016. A path that names no file is KQP015.
- It is at most 5 MiB, or it is KQP017.
- The site copies it once into
_kanoniq/media/, named by its content, however many pages show it. An image only a page that is not built shows is not copied. - An SVG is shown as an image, never written into the page, so a script in it does not run.
Links to other pages
Link to another page by its file, with a path relative to the file you write in, as for an image: [Checkout](Selling/Checkout.page.yml) links to the Checkout page in the site, and Selling/Checkout.page.yml#payment to a heading on it. A link may name a page file or a decision record.
A link that is only a #heading, and an http, https or mailto address, are kept as written. Any other link is an error, KQP018: a relative path to no page file or decision record, a path from /, or another scheme. A link to a page that is not built (see Statuses) is shown as its text, and kq portal:build warns, KQP105.
Views in the text
A fenced block of language kanoniq-view embeds a view where it stands. Its content is a view tile's view (see Views in tiles), at required:
```kanoniq-view
at: initial
focus: shop/platform-orders/order-service
interfaces: used
```
The view is drawn in the page as a decision record's is, with a link to open it whole and the tile's meta line as its caption. Its YAML, its settings and its paths are checked as a view tile's, KQP001, KQP002, KQP010, KQP019 and KQP106. Rename and Refactor: Move repoint a block's paths as a tile's (see Views in tiles). kq dissolve does not rewrite a block, so one naming a plateau it removes fails the build until you change it.
A problem in a Markdown page's or a decision record's text is reported at its line in the file; one in a .page.yml's text or in an announcement is reported at the field.
© 2026 Extenza Works. All rights reserved.