From 56312ba2c368aabcaa5edd6ce2bcf687d00a7d97 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 17 Mar 2025 09:12:55 -0400 Subject: [PATCH] Improve the related content config --- config.yaml | 18 ++++++++++++++++-- themes/red/layouts/_default/single.html | 2 ++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/config.yaml b/config.yaml index 7e16204..bf7f100 100644 --- a/config.yaml +++ b/config.yaml @@ -256,7 +256,21 @@ related: pattern: "" toLower: false type: basic - weight: 10 + weight: 50 + - applyFilter: false + cardinalityThreshold: 0 + name: characters + pattern: "" + toLower: false + type: basic + weight: 60 + - applyFilter: false + cardinalityThreshold: 0 + name: tags + pattern: "" + toLower: false + type: basic + weight: 50 - applyFilter: false cardinalityThreshold: 0 name: characters @@ -264,5 +278,5 @@ related: toLower: false type: basic weight: 80 - threshold: 9 + threshold: 50 toLower: false diff --git a/themes/red/layouts/_default/single.html b/themes/red/layouts/_default/single.html index 1ed79a2..f3e5bae 100644 --- a/themes/red/layouts/_default/single.html +++ b/themes/red/layouts/_default/single.html @@ -85,6 +85,8 @@ {{ if in .File.Dir "blog" }} {{ partial "voting" . }} + {{ partial "related" . }} + {{ partial "comments" . }} {{ end }}