mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
As the llms.txt convention prefers: agents get the clean Markdown, install commands and tables included, without the site's chrome. _partials/llms-link.txt gives a page's Markdown copy's URL, or its HTML page's for one without a copy. Co-Authored-By: Claude Opus 5.5 <[email protected]>
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
{{- /* llms.txt at the site root, in place of Hextra's: the site's title and description, then each top-level
|
|
section and the sections in it, two levels as the site has, each with its own page first and its pages
|
|
after it, each a link to its Markdown copy (_partials/llms-link.txt) and a line of plain text
|
|
(_partials/llms-summary.txt). A page or section with
|
|
llms: false in its front matter is left out. */ -}}
|
|
# {{ site.Title }}
|
|
|
|
> {{ site.Params.description }}
|
|
{{ range site.Sections }}
|
|
{{- if ne .Params.llms false }}
|
|
## {{ .Title }}
|
|
|
|
- [{{ .Title }}]({{ partial "llms-link.txt" . }}): {{ partial "llms-summary.txt" . }}
|
|
{{- range .RegularPages }}
|
|
{{- if ne .Params.llms false }}
|
|
- [{{ .Title }}]({{ partial "llms-link.txt" . }}): {{ partial "llms-summary.txt" . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{ range .Sections }}
|
|
{{- if ne .Params.llms false }}
|
|
### {{ .Title }}
|
|
|
|
- [{{ .Title }}]({{ partial "llms-link.txt" . }}): {{ partial "llms-summary.txt" . }}
|
|
{{- range .RegularPages }}
|
|
{{- if ne .Params.llms false }}
|
|
- [{{ .Title }}]({{ partial "llms-link.txt" . }}): {{ partial "llms-summary.txt" . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{ end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with where site.Home.RegularPages "Params.llms" "ne" false }}
|
|
## Other pages
|
|
|
|
{{ range . -}}
|
|
- [{{ .Title }}]({{ partial "llms-link.txt" . }}): {{ partial "llms-summary.txt" . }}
|
|
{{ end }}
|
|
{{- end }}
|