From 5fe793f3a5ed5f862789ca00a29358cf7ef73d9d Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Fri, 24 May 2024 16:12:43 +0200 Subject: [PATCH] search: exclude hidden pages from index Hidden pages (pages excluded from the sitemap) shouldn't be included in the pagefind index. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- layouts/_default/baseof.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6f6db22003..f2e5acd62b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -30,7 +30,11 @@ {{ end }} -
+
{{ block "main" . }} {{ end }}