🐛 Honor externalUrl in llms.txt

This commit is contained in:
Pierre Mesure committed 2026-11-03 07:16:53 +01:00
1 parent ebe683e9c2
commit d7ce0f8462
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 -}}