improve effects, start adding search
This commit is contained in:
parent
e2fb545d0b
commit
36554b5b7b
8 changed files with 184 additions and 68 deletions
|
@ -11,6 +11,7 @@ import utc from "dayjs/plugin/utc.js";
|
|||
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';
|
||||
|
||||
dayjs.extend(utc);
|
||||
|
||||
|
@ -133,6 +134,10 @@ export default (config) => {
|
|||
stylesheet: "/simple-atom.xslt",
|
||||
});
|
||||
|
||||
config.on('eleventy.after', () => {
|
||||
execSync(`npx pagefind --site dist --glob \"**/*.html\"`, { encoding: 'utf-8' });
|
||||
});
|
||||
|
||||
return {
|
||||
dir: {
|
||||
input: "site",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue