From 590d50cfb538ae67a5547c871685f3d9c5dcfda8 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sat, 11 Jan 2025 09:09:25 +0100 Subject: [PATCH] limit related pages to /posts (do not include other pages like /spam) --- layouts/partials/related.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/layouts/partials/related.html b/layouts/partials/related.html index 1ca1c4d..9465ba4 100644 --- a/layouts/partials/related.html +++ b/layouts/partials/related.html @@ -1,11 +1,17 @@ +{{ $opts := dict + "document" . + "indices" (slice "tags") +}} {{ $related := .Site.RegularPages.Related . | first 5 }} {{ with $related }}

Related Posts

{{ end }}