Skip to content
Norn
Menu

norn-workspaces-home

A monorepo's home page: the hero with the install sample, then an index of the workspaces, titles in the mono face. Extends norn-base. The page body follows the sections, in a section of its own, in norn-rich-text. Markdown is compiled once, as on norn-docs, and a page with no body renders no section. The install sample is a norn-code-block: highlighted with @allons-y/webc-code-sample, and a plain <pre><code> without it. Its texts ("Get started", "Browse packages", "View on GitHub", "Packages") come from componentStrings under norn-workspaces-home, then English.

layout: norn-workspaces-home.webc a template, from @allons-y/webc-patterns

Examples

Color scheme
Width

Open on its own

Source
---
title: Default
order: 1
layout: norn-workspaces-home.webc
---

Props

The plugin's props mapping sets them on each page, and the layout reads them as $data.norn.

NameTypeDescription
lede string The hero paragraph. Falls back to the description.
install string The install command.
repo string The repository's URL.
workspaces { href: string, title: string, description?: string }[] The workspaces, each with its page.

Slots

NameDescription
default The page body, after the sections: Markdown or WebC, compiled once. A page with no body renders no section.