Merge pull request #3150 from PierreMesure/fix/llms-external-urls

🐛 Honor externalUrl in llms.txt
This commit is contained in:
Nuno C. authored and GitHub committed 2026-11-06 11:51:12 +00:00
commit a597518562
1 file changed
+2 -2
+2 -2
View File
@@ -10,7 +10,7 @@
{{- /* Pages in this section */ -}}
{{- range $p := $section.RegularPages }}
{{- if and (not $p.Params.searchHidden) (ne $p.Layout `archives`) (ne $p.Layout `search`) }}
- [{{ $p.Title }}]({{ $p.Permalink }})
- [{{ $p.Title }}]({{ $p.Params.externalUrl | default $p.Permalink }})
{{- end -}}
{{- end -}}
@@ -30,7 +30,7 @@
{{- range $p := $orphans -}}
{{ if and (not $p.Params.searchHidden) (ne $p.Layout `archives`) (ne $p.Layout `search`) (not $p.IsHome) }}
- [{{ $p.Title }}]({{ $p.Permalink }})
- [{{ $p.Title }}]({{ $p.Params.externalUrl | default $p.Permalink }})
{{- end -}}
{{- end -}}