mirror of https://github.com/crossplane/docs.git
18 lines
483 B
HTML
18 lines
483 B
HTML
{{/*
|
|
Auto-generates an index page with links to child pages, ordered by weight.
|
|
Usage: {{ partial "auto-index" . }}
|
|
*/}}
|
|
{{ if .RegularPages }}
|
|
<div class="auto-index">
|
|
{{ if .Params.description }}
|
|
<p>{{ .Params.description }}</p>
|
|
{{ end }}
|
|
<p>Topics in this section:</p>
|
|
<ul>
|
|
{{ range .RegularPages.ByWeight }}
|
|
<li><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Params.description }} - {{ .Params.description }}{{ end }}</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|