trailing slashes, cache-busting get params

This commit is contained in:
Joshua Seigler 2025-06-11 20:48:56 -04:00
parent bb3af95d19
commit 49dc3c20a0
6 changed files with 25 additions and 50 deletions

View file

@ -12,6 +12,7 @@ import clean from "eleventy-plugin-clean";
import site from "./site/_data/site.js";
import { feedPlugin } from "@11ty/eleventy-plugin-rss";
import { execSync } from 'child_process';
import eleventyAutoCacheBuster from "eleventy-auto-cache-buster";
dayjs.extend(utc);
@ -134,6 +135,8 @@ export default (config) => {
stylesheet: "/simple-atom.xslt",
});
config.addPlugin(eleventyAutoCacheBuster);
config.on('eleventy.after', () => {
execSync(`npx pagefind --site dist --glob \"**/*.html\"`, { encoding: 'utf-8' });
});