Search and stuff
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user