add a TOC, more nutrition info stuff, update some styles and templates
This commit is contained in:
parent
863ed9c128
commit
a29ee38e0e
18 changed files with 534 additions and 86 deletions
|
@ -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' });
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue