From 55120c7e8981919aa51d57a8e0abe1b1f50d6c66 Mon Sep 17 00:00:00 2001
From: Velimir Đurković <velimir.djurkovic@gmail.com>
Date: Wed, 05 Aug 2026 21:40:57 +0000
Subject: [PATCH] fix: use site regular pages for related content lookup (#1073)
---
layouts/single.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/single.html b/layouts/single.html
index c7422bf..430899b 100644
--- a/layouts/single.html
+++ b/layouts/single.html
@@ -4,7 +4,7 @@
{{ end }}
{{ define "main" }}
- {{- $related_content := .RegularPages.Related . -}}
+ {{- $related_content := .Site.RegularPages.Related . -}}
{{- $needs_aside := or .Params.toc $related_content -}}
{{ $page := .}}
{{ $section := .Site.GetPage "section" .Section }}
--
Gitblit v1.10.0