Troubleshooting
Troubleshooting matrix: build fails, links broken, template empty
Symptom → one first check → one next step.
templates/post.njk missing
Create templates/post.njk with base layout; confirm path matches frontmatter.
Collection empty
Check collection frontmatter or folder grouping; ensure files under content roots.
Images not found
Absolute paths from site root; check static/ copy in dist/.
Pretty URL 404
Use relative paths from page to asset; verify collection path spelling.
Nunjucks parse error
Escape stray braces; named variables in _data; isolate blocks.