Skip to content

Hibana (火花)

Little sparks for Lume — plugins, processors, filters, and preprocessors that enhance Lume static-site projects.

cssBanner

Adds a comment banner to generated CSS files.

shuffle

Filter to randomize array order in templates.

deferPagefind

Defers Pagefind CSS and JS loading for faster page rendering.

externalLinksIcon

Adds external link icons to anchors with target="_blank".

ventoHeadingAnchors

Adds anchor links to headings in Vento pages.

ventoTOC + ventoTOCInject

Generates a table of contents from headings and injects it at a marker position.

Install via the deno.land/x registry:

deno.json
{
"imports": {
"lume/": "https://deno.land/x/lume@v3.1.2/",
"hibana/": "https://deno.land/x/hibana@v1.3.0/"
}
}

Or import directly from GitHub:

{
"imports": {
"hibana/": "https://raw.githubusercontent.com/RickCogley/hibana/v1.3.0/"
}
}

Then use the helpers in your Lume _config.ts:

import lume from "lume/mod.ts";
import { externalLinksIcon, ventoHeadingAnchors, ventoTOC } from "hibana/mod.ts";
const site = lume();
site.use(externalLinksIcon());
site.use(ventoHeadingAnchors());
site.use(ventoTOC());
export default site;

See the API reference for full signatures and option types.