add a TOC, more nutrition info stuff, update some styles and templates

This commit is contained in:
Joshua Seigler 2025-06-19 15:54:29 -04:00
parent 863ed9c128
commit a29ee38e0e
18 changed files with 534 additions and 86 deletions

View file

@ -9,6 +9,7 @@ import prettier from "prettier";
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc.js";
import clean from "eleventy-plugin-clean";
import toc from "eleventy-plugin-toc";
import site from "./site/_data/site.js";
import { feedPlugin } from "@11ty/eleventy-plugin-rss";
import { execSync } from 'child_process';
@ -139,6 +140,8 @@ export default (config) => {
config.addPlugin(eleventyAutoCacheBuster);
config.addPlugin(toc);
config.on('eleventy.after', () => {
execSync(`npx pagefind --site dist --glob \"**/*.html\"`, { encoding: 'utf-8' });
});