12.6 Debugging Template Resolution with hugo --verbose
Right, so you’ve built a beautiful template, you’re sure you’ve put it in the right place, and Hugo is…rendering something else entirely. Or maybe nothing at all. Welcome to the most common head-scratcher in all of Hugo-land. Before you start questioning your sanity, let me introduce you to your new best friend: hugo --verbose. This flag is Hugo’s internal monologue. It’s the debug log that spills the beans on every single decision it makes, and crucially for us, it narrates its entire journey through the template lookup order. It’s the difference between guessing why your layouts/_default/single.html isn’t firing and knowing that Hugo found a more specific layouts/posts/single.html first and called it a day.