mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
- layouts/partials/ → layouts/_partials/ - layouts/shortcodes/ → layouts/_shortcodes/ - layouts/_default/_markup/ → layouts/_markup/ - layouts/_default/*.html → layouts/*.html (flatten _default/) - layouts/index.html → layouts/home.html - layouts/index.*.json/txt → layouts/home.*.json/txt - layouts/_default/index.llms.txt → layouts/home.llms.txt - layouts/tag/ → layouts/tags/ (match /tags/ URL path)
20 lines
490 B
Plaintext
20 lines
490 B
Plaintext
{{- $pages := where site.RegularPages "Params.sitemap" "!=" false -}}
|
|
{{- $sorted := sort $pages "RelPermalink" -}}
|
|
{{- $grouped := $sorted.GroupBy "Section" -}}
|
|
|
|
# Docker Documentation
|
|
{{- range $grouped }}
|
|
|
|
## {{ humanize .Key }}
|
|
{{- range .Pages }}
|
|
{{- template "pageItem" . }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
|
|
{{- define "pageItem" }}
|
|
{{- if and .Title .Permalink }}
|
|
- [{{ .Title }}]({{ .Permalink }})
|
|
{{- with .Description }}: {{ chomp (replace . "\n" " ") }}{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|