While putting together the next Hugo newsletter I came across a couple of strategies for checking links, both internal and external, and thought they might be worth sharing more widely.
Internal and external links: Carsten Nichte uses a custom script that wraps linkinator
with a few items installed alongside their Hugo project. It’s always worth digging into any dependencies you add, but it looks like quite a clean solution for Hugo users, with a solid stats output to show what needs fixing. More details here.
Internal links only: On the Hugo docs themselves, Joe Mooring uses a link render hook to resolve internal destinations, with his error level set to warning
. More details here.
Let me know if you have different solutions!