Skip to main content

simple-navigation

A horizontal navigation bar showing all level-1 sections as clickable links.

The active section label is shown in primary color; all other sections use secondary color. An optional logo is placed at the right edge. Typically used as a page header in themes.

Parameters

self : none    default: none

The self context, used to resolve short headings.

short-heading : bool    default: true

Whether to shorten heading labels using utils.short-heading. Default is true.

primary : color    default: white

The text color of the currently active section. Default is white.

secondary : color    default: gray

The text color of inactive sections. Default is gray.

background : color    default: black

The background fill of the navigation bar. Default is black.

Optional logo displayed at the right side of the bar. Default is none.

Returns: content