From fa58e0dd5c8a96567733c681c2878e1782179599 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Sat, 4 Apr 2026 11:06:48 +0200 Subject: [PATCH] fix: exclude titleless pages from llms.txt index Skip pages with an empty title (e.g. browserconfig.xml) to prevent blank link labels in the index, consistent with the flexsearch module. Co-Authored-By: Claude Sonnet 4.6 --- layouts/index.llmstxt.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.llmstxt.txt b/layouts/index.llmstxt.txt index a7ad975..ca57cee 100644 --- a/layouts/index.llmstxt.txt +++ b/layouts/index.llmstxt.txt @@ -26,7 +26,7 @@ */ -}} {{- $allPages := $site.RegularPages | append $site.Sections -}} {{- range $allPages -}} - {{- if and (eq .Language.Lang $site.Language.Lang) (not .Params.llm.exclude) .RelPermalink -}} + {{- if and (eq .Language.Lang $site.Language.Lang) (not .Params.llm.exclude) .RelPermalink .Title -}} {{- if eq .Kind "section" -}} {{- $hasChildren := or (len .RegularPages) (len .Sections) -}} {{- if not $hasChildren -}}