What problem does it solve?
Hugo template development often misses runtime errors that only appear when templates render. This Skill enforces a mandatory runtime testing protocol to catch issues in layouts, partials, and shortcodes before deployment.
Core Features & Use Cases
- Enforces runtime validation by launching a local Hugo server and attempting page renders to surface template errors.
- Applies to changes under layouts/, layouts/partials/, and layouts/shortcodes/ with automatic verification of page rendering.
- Use case: when updating a theme or documentation site, ensure all templates render without panics across common pages.
Quick Start
Start by running the Hugo server on port 1315:
npx hugo server --port 1315 2>&1 | head -50
Verify the server is serving pages:
curl -s -o /dev/null -w "%{http_code}" http://localhost:1315/
Stop the server after validation:
pkill -f "hugo server --port 1315"