Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/plugins/nav.ts>Nav

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class Nav
import { Nav } from "https://deno.land/x/lume@v2.4.2/plugins/nav.ts";

Search helper

Constructors

new
Nav(searcher: Searcher, defaultOrder?: string)

Methods

breadcrumb(
url: string,
query?: string,
sort?: string,
): NavData[]

Clear the cache (used after a change in watch mode)

menu(
url?: "/",
query?: string,
sort?: string,
): NavData
menu(
url: string,
query?: string,
sort?: string,
): NavData | undefined
nextPage(
url: string,
query?: string,
sort?: string,
): Data | undefined
previousPage(
url: string,
query?: string,
sort?: string,
): Data | undefined