Search and stuff

This commit is contained in:
2026-03-11 18:58:42 -05:00
parent 4665a00bc7
commit a5316f1a69
43 changed files with 422 additions and 106 deletions

View File

@@ -12,12 +12,21 @@ import pluginNavigation from "@11ty/eleventy-navigation";
import prettier from "prettier";
import { EleventyHtmlBasePlugin } from "@11ty/eleventy";
import { dateSuffixAdder, monthMap } from "./public/js/modules/dateTools.js";
// For PageFind
import childProcess from "child_process";
const figoptions = {
figcaption: true,
};
export default async function (eleventyConfig) {
// PageFind Search
eleventyConfig.on("eleventy.after", () => {
childProcess.execSync(`npx pagefind --site _site --glob "**/*.html"`, {
encoding: "utf-8",
});
});
// Customize Markdown library settings:
let markdownItOptions = {
html: true,