Hugo: Check content for dead links during the generation

Created on 14 Sep 2015  路  2Comments  路  Source: gohugoio/hugo

This optional feature could check if a link inside a document is and output a warning.

Most helpful comment

I think we could add a separate subcommand for this, like hugo test. For the site I'm working on, I'd like to have a step that will check for broken links before deploying. I could do this by just building on localhost and running a link checker over that, but ISTM it'd be faster/more efficient if it were built into Hugo.

All 2 comments

This sounds out of scope. The only way to check dead links is to "try it" -- and that is too slow to be part of Hugo's build process.

I think we could add a separate subcommand for this, like hugo test. For the site I'm working on, I'd like to have a step that will check for broken links before deploying. I could do this by just building on localhost and running a link checker over that, but ISTM it'd be faster/more efficient if it were built into Hugo.

Was this page helpful?
0 / 5 - 0 ratings