Include index frontmatter description on landing pages

Signed-off-by: Nic Cope <nicc@rk0n.org>
This commit is contained in:
Nic Cope 2025-08-14 11:41:24 -07:00
parent 789826fc13
commit 2f68349f93
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ 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 }}