Added automatically generating banner cards for each md page file that has

---
banner_title: "..."
banner_description: "..."
---
This commit is contained in:
Relism
2024-12-23 22:40:08 +01:00
parent 1d908ae2eb
commit 6b96bf7102
31 changed files with 28645 additions and 124 deletions
+14
View File
@@ -0,0 +1,14 @@
const { generateImagesForProjects } = require('./banner-generator.cjs');
const postbuild = async () => {
console.log('Build completed, starting Banner card image generation...');
try {
await generateImagesForProjects();
console.log('Banner card images generated successfully!');
} catch (error) {
console.error('Error during image generation:', error);
}
};
// Execute the post-build task
postbuild().then(r => r).catch(e => console.error(e));