Skip to content

Commit e17aa3e

Browse files
committed
llms.txt: only render section links to existing pages
Signed-off-by: David Karlsson <[email protected]>
1 parent 3a8312b commit e17aa3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/_default/list.markdown.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ .Title }}
22
{{ .RenderShortcodes }}
3-
{{ range .Pages }}
4-
- [{{ .Title }}](https://docs.docker.com{{ .RelPermalink }})
3+
{{ range where .Pages "Permalink" "ne" "" }}
4+
- [{{ .Title }}]({{ .Permalink }})
55
{{ end }}

0 commit comments

Comments
 (0)