feat: Updated project config/setup

Added eleventy config to add public folder passthrough, updated pack.json to serve content instead of compile, added plugins/metadata to rendering engine
This commit is contained in:
2025-07-02 21:42:48 -04:00
parent 2b99f7b3e9
commit f5f43578ec
4 changed files with 40 additions and 2 deletions

11
src/_data/wordCount.js Normal file
View File

@ -0,0 +1,11 @@
export default function (data) {
if (typeof data.content === 'string') {
const words = data.content.trim().split(/\s+/).length;
const minutes = Math.ceil(words / 200); // avg reading speed
data.wordCount = words;
data.readingTime = `${minutes} min read`;
data.readingTimeMinutes = minutes;
}
return data;
}