From a38b075ac3ab555ad7a73e9f7aacf1517232ef8e Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 24 Jun 2025 09:42:15 +0200 Subject: [PATCH] chore: exclude hidden pages from llms.txt Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- layouts/_default/index.llms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/index.llms.txt b/layouts/_default/index.llms.txt index 97aa37305a82..87c67318771e 100644 --- a/layouts/_default/index.llms.txt +++ b/layouts/_default/index.llms.txt @@ -1,4 +1,4 @@ -{{- $pages := .Site.RegularPages -}} +{{- $pages := where site.RegularPages "Params.sitemap" "!=" false -}} {{- $sorted := sort $pages "RelPermalink" -}} {{- $grouped := $sorted.GroupBy "Section" -}}