docs-matrix-spec/layouts/shortcodes/cs-modules.html
2021-01-19 15:57:35 -08:00

14 lines
320 B
HTML

{{/*
This template is used to embed module documentation in the client-server API spec.
It searches the site for pages of type "module", sorts them by weight, and
emits the page's rendered content.
*/}}
{{ $modules := where site.Pages "Type" "module" }}
{{ range $modules.ByWeight }}
{{ .Content }}
{{ end }}