fix: new posts were not rendering css properly

This commit is contained in:
venus
2026-09-14 23:25:16 -05:00
parent 6f3bf4bf89
commit 31f93f559d
4 changed files with 28 additions and 0 deletions
+5
View File
@@ -5,6 +5,11 @@ if [ "$#" -gt 0 ]; then
exec "$@"
fi
# Ensure posts directory data file exists for layout inheritance
if [ ! -f src/posts/posts.json ]; then
echo '{"layout": "layouts/post.njk"}' > src/posts/posts.json
fi
# Build static site from mounted or packaged markdown posts
echo "[blog-engine] Compiling static site with Eleventy..."
npm run build || exit 1