From e25aa655f4227ac064be5fe770d517a80acd46b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 18 Jul 2018 19:58:39 +0200 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hugolib/config_test.go') diff --git a/hugolib/config_test.go b/hugolib/config_test.go index 0fe692805..16d07d1af 100644 --- a/hugolib/config_test.go +++ b/hugolib/config_test.go @@ -392,6 +392,6 @@ privacyEnhanced = true b.WithConfigFile("toml", tomlConfig) b.Build(BuildCfg{SkipRender: true}) - assert.True(b.H.Sites[0].Info.Config.Privacy.YouTube.PrivacyEnhanced) + assert.True(b.H.Sites[0].Info.Config().Privacy.YouTube.PrivacyEnhanced) } -- cgit v1.2.3