diff --git a/site/.vitepress/config.ts b/site/.vitepress/config.ts index 95fab89f..b44ffb3d 100644 --- a/site/.vitepress/config.ts +++ b/site/.vitepress/config.ts @@ -47,7 +47,7 @@ module.exports = { const pageStart = code.indexOf(""); const firstCommit = (await exec(`git log -n 1 --diff-filter=A --format="" site/${context.page}`)).stdout; const lastCommit = (await exec(`git log -n 1 --diff-filter=M --format="" site/${context.page}`)).stdout; - const header = code.slice(0, pageStart < 0 ? 0 : pageStart - 5).replace('
${wc} words, ~${Math.round(wc / 183)} minute read. Planted ${firstCommit}.${lastCommit ? ` Last tended to ${lastCommit}.` : ''}