Navigation Logic

How this site’s navigation responds to routes, screen sizes, headings, and scrolling. These diagrams use Pele to render the current implementation from Mermaid syntax.

Top bar

The left control follows the route. The center follows the page title’s position, independently of whether scrolling has started.

Top bar diagram
Rendering diagram…

Actions and Contents

Page actions stay inline at the page top and on Home. Below 640px, they collapse into a menu while the scrolling title is visible. Contents keeps a separate trigger.

Actions and Contents diagram
Rendering diagram…

Inside Contents

The panel uses rendered heading anchors, excludes disclosure triggers, and tracks the current section while open. Below 1024px it opens as a sheet; page actions remain in the top bar.

Inside Contents diagram
Rendering diagram…

Bottom navigation

Bottom navigation is mobile-only. It appears on the five main destinations and eligible pages one level below them; writing articles and deeper routes use article navigation instead.

Bottom navigation diagram
Rendering diagram…

Scroll and appearance

The top bar stays sticky. Its background changes as soon as scrolling starts; clicking the scrolling page title returns to the page top.

Scroll and appearance diagram
Rendering diagram…