mathiassm
Safe HaskellNone
LanguageGHC2024

MathiasSM.Context.Nav

Description

The site menu, built from the pages that declare a nav entry

Synopsis

Documentation

navContext :: SiteConfig -> String -> Context a Source #

The site menu as a nav list (label, href, active, lang), built from the pages that declare `nav:` and ordered by navOrder

current is the name of the page being rendered (its file name without extension, or its post group); that menu entry is active.