From 962ea5e600d0781c7d7cd8361026cc07ba1b4c73 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 23 Jul 2022 23:51:05 -0400 Subject: [PATCH] Add Link Checker Signed-off-by: Tommy --- netlify.toml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/netlify.toml b/netlify.toml index 21f3427..56955e8 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,3 +3,30 @@ [context.deploy-preview] command = "hugo -b $DEPLOY_PRIME_URL" + +[[plugins]] +package = "netlify-plugin-checklinks" + + [plugins.inputs] + # An array of glob patterns for pages on your site + # Recursive traversal will start from these + entryPoints = [ + "*.html", + ] + + # Recurse through all the links and asset references on your page, starting + # at the entrypoints + recursive = true + + # Checklinks outputs TAP (https://testanything.org/tap-version-13-specification.html) + # by default. Enabling pretty mode makes the output easier on the eyes. + pretty = true + + # Report on all broken links to external pages. + # Enabling this will make your tests more brittle, since you can't control + # external pages. + checkExternal = true + + # Enable to check references to source maps, source map sources etc. + # Many build tools don't emit working references, so this is disabled by default + followSourceMaps = true