Add configurable ref/relref error handling and notFoundURL
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 18 Jul 2018 17:58:39 +0000 (19:58 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 19 Jul 2018 12:32:43 +0000 (14:32 +0200)
commite25aa655f4227ac064be5fe770d517a80acd46b2
treed5826566794ba8acba57fda155d56ba3d844fbad
parent12679b408362a93a3c6159588d6291a3b7ed5548
Add configurable ref/relref error handling and notFoundURL

Two new settings:

* refLinksErrorLevel: ERROR (default) or WARNING. ERROR will fail the build.
* refLinksNotFoundURL: Used as a placeholder when page references cannot be found.

Fixes #4964
hugolib/config_test.go
hugolib/hugo_sites.go
hugolib/page.go
hugolib/shortcode_test.go
hugolib/site.go
hugolib/site_test.go
hugolib/testhelpers_test.go