diff --git a/_config.ts b/_config.ts index e994b4d..8282657 100644 --- a/_config.ts +++ b/_config.ts @@ -30,6 +30,7 @@ import onDemand from "lume/plugins/on_demand.ts"; import cssBanner from "https://raw.githubusercontent.com/RickCogley/hibana/refs/heads/main/plugins/css_banner.ts?3"; import shuffle from "https://raw.githubusercontent.com/RickCogley/hibana/refs/heads/main/plugins/shuffle.ts?3"; import fff from "lume/plugins/fff.ts"; +import purgecss from "lume/plugins/purgecss.ts"; const site = lume( { @@ -111,6 +112,7 @@ site.use(fff({ getGitDate: true, postTypeDiscovery: true, })); +site.use(purgecss()); // site.filter("shuffle", (array: T[] = []) => { // for (let i = array.length - 1; i >= 0; i--) { diff --git a/_preload.ts b/_preload.ts index ff1f059..e4b6401 100644 --- a/_preload.ts +++ b/_preload.ts @@ -4,6 +4,6 @@ * @see https://deno.com/deploy/changelog#statically-analyzable-dynamic-imports */ export function toStaticallyAnalyzableDynamicImports() { - import("./src/_data.ts"); import("./src/archive/index.ts"); + import("./src/_data.ts"); } diff --git a/deno.json b/deno.json index 4ce0812..0207928 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "imports": { - "lume/": "https://deno.land/x/lume@v2.4.3/", + "lume/": "https://deno.land/x/lume@v2.5.0/", "lume/cms/": "https://cdn.jsdelivr.net/gh/lumeland/cms@v0.8.3/" }, "tasks": {