Add plugin system

This commit is contained in:
thePR0M3TH3AN
2025-07-10 10:44:46 -04:00
parent 1698044bb4
commit a385a7b312
5 changed files with 97 additions and 1 deletions

7
plugins/analytics.js Normal file
View File

@@ -0,0 +1,7 @@
module.exports = {
onPageRendered: async ({ html, file }) => {
// Example: inject analytics script into each page
const snippet = '\n<script>console.log("Page viewed: ' + file + '")</script>';
return html.replace('</body>', `${snippet}</body>`);
}
};