Skip to content

Commit

Permalink
enable fff
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCogley committed Nov 29, 2024
1 parent 7e45a82 commit 9d56e7f
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import brotli from "lume/plugins/brotli.ts";
import onDemand from "lume/plugins/on_demand.ts";
import cssBanner from "https://raw.githubusercontent.com/RickCogley/hibana/refs/heads/main/plugins/css_banner.ts?token=2";
import shuffle from "https://raw.githubusercontent.com/RickCogley/hibana/refs/heads/main/plugins/shuffle.ts?token=2";
// import fff from "lume/plugins/fff.ts";
import fff from "lume/plugins/fff.ts";

const site = lume(
{
Expand Down Expand Up @@ -96,9 +96,21 @@ site.use(cssBanner({
message: "===rickcogley - css jokes are always in style===",
}));
site.use(shuffle());
// site.use(fff({
// date: "published", // Create the variable 'published' from the variable 'date'
// }));
site.use(fff({
date: "published",
presets: [{
summary: "content",
}],
strict: {
categories: false,
media: {
array: false,
type: "object",
},
},
getGitDate: true,
postTypeDiscovery: true,
}));

// site.filter("shuffle", <T>(array: T[] = []) => {
// for (let i = array.length - 1; i >= 0; i--) {
Expand Down

0 comments on commit 9d56e7f

Please sign in to comment.