trailing slashes, cache-busting get params
This commit is contained in:
parent
bb3af95d19
commit
49dc3c20a0
6 changed files with 25 additions and 50 deletions
|
@ -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' });
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue