fix: new posts were not rendering css properly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user