Skip to content
Norn
Menu

norn-landing

A project's landing page: the hero with the usage or install sample, then the install, features, and packages sections. 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. Samples are norn-code-blocks: highlighted with @allons-y/webc-code-sample, and plain <pre><code> without it. Its texts ("Get started", "View on GitHub", "Free & open source", "License: {license}", "Node {node}", and the section headings) come from componentStrings under norn-landing, then English.

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

Examples

Color scheme
Width

Open on its own

Source
---
title: Default
order: 1
layout: norn-landing.webc
anchors: true
---

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.
repo string The repository's URL.
license string The license name, for the hero's facts.
node string The lowest Node version, such as 24+.
install string The install command.
usage { language: string, code: string, caption?: string } One sample for the hero. With it, the install command gets its own section.
features { title: string, description: string, href?: string }[] Feature cards.
packages { title: string, description: string, href?: string }[] Package cards, titles in the mono face.

Slots

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