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

x/lume/plugins/search.ts>Search

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class Search
import { Search } from "https://deno.land/x/lume@v1.18.2/plugins/search.ts";

Search helper

Constructors

new
Search(searcher: Searcher, returnPageData: boolean)

Methods

data(path?): Data | undefined

Return the data in the scope of a path (file or folder)

nextPage(
url: string,
query?: Query,
sort?: Query,
)

Return the next page of a search

page(query?: Query, sort?: Query)

Search and return one page

pages(
query?: Query,
sort?: Query,
limit?: number,
)

Search pages

previousPage(
url: string,
query?: Query,
sort?: Query,
)

Return the previous page of a search

tags(query?: Query)

Returns all tags values of a search

values(key: string, query?: Query)

Returns all values from the same key of a search