Menu
module Menu| Assembly | Nacara.Theme.Default |
| Attributes | [<RequireQualifiedAccess>] |
Menu entries, built by pipeline.
Functions and values
link (label: string) (url: string) : MenuItem
link (label: string) (url: string) : MenuItemAnything outside the site.
| Parameter | |
|---|---|
label | What the entry reads. |
url | Where it goes. Nothing resolves it against the site, so write it in full. |
ofOutline (outline: MenuOutlineItem list) : MenuItem list
ofOutline (outline: MenuOutlineItem list) : MenuItem listThe menu a plugin offered, as this theme's own entries.
What a site writes for the section is used instead - an offer, not a rule.
| Parameter | |
|---|---|
outline | What a plugin registered for the section it generates. |
page (path: string) : MenuItem
page (path: string) : MenuItemA page, referenced by the path of its source file.
| Parameter | |
|---|---|
path | Relative to the content directory, extension included - guide/getting-started.md. The entry takes the page's own title, so renaming a heading does not mean editing the menu. |