From 615d18ef8da8ce0ed5493305952be5de10c82ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 20 Feb 2023 11:58:02 +0100 Subject: [PATCH] Add Related fragments config --- hugo.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hugo.toml b/hugo.toml index da6bd9534..5bed0ab2b 100644 --- a/hugo.toml +++ b/hugo.toml @@ -65,7 +65,17 @@ disableAliases = true toLower = false [[related.indices]] name = "keywords" - weight = 100 + weight = 60 + [[related.indices]] + # Can be used as a front matter slice to link to other page fragments (headings) using their ID. + # This isn't particular useful in the current docs, but we're planning on getting a auto generated + # reference section with a better ID setup. + # For now, we just use it to give pages with same headings some similarity score. + name = "fragmentrefs" + type = "fragments" + applyFilter = false + weight = 60 + cardinalityThreshold = 50 [[related.indices]] name = "date" weight = 10