Skip to content

Commit

Permalink
Upgrade lume to v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCogley committed Jan 12, 2025
1 parent 74c1bc9 commit 6253ea2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down Expand Up @@ -111,6 +112,7 @@ site.use(fff({
getGitDate: true,
postTypeDiscovery: true,
}));
site.use(purgecss());

// site.filter("shuffle", <T>(array: T[] = []) => {
// for (let i = array.length - 1; i >= 0; i--) {
Expand Down
2 changes: 1 addition & 1 deletion _preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -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/[email protected]/"
},
"tasks": {
Expand Down

0 comments on commit 6253ea2

Please sign in to comment.